Hi,
My ini config is the following:
[test]
verbose=9
source_host=linuxhost.fsp.ch
source_dir=/tmp
file_path=/tmp/noaccess.pdf
source_protocol=sftp
source_ssh_auth_method=password
source_user=linuxuser
source_password=linuxpassword
target_host=winhost.fsp.ch
target_dir=\winhost.fsp.ch\share
target_protocol=local
target_pre_transfer_commands=net use \winhost.fsp.ch\share password
operation=copy
remove_files=false
force_files=false
linuxuser can access /tmp folder but has no rights on noaccess.pdf.
When the jade command is run with this configuration the following :
In this scenario the command should finish with a return code not equal to 0.
And an empty file should not be created in the target folder.
Regards,
Romain Joachim
Hi,
Thank you for using JADE and for your post.
the option "force_files=false" will return a cc of zero, even if there are no files transferred. The default for this option is "true". I don't know the reason why you set it to false.
I will check why the file on the target is created.
hth
soskb
Hi,
Thanks for your support.
The command is scheduled at fixed interval and there might be no files when it is launched.
We use force_files=false because we do not want the command to raise an error if no files are found.
Regards,
Romain Joachim
Hi,
I've reported it in http://www.sos-berlin.com/jira/browse/SOSFTP-207
The fix is in progress
Regards,
Oliver
http://www.sos-berlin.com/jira/browse/SOSFTP-207