FTPScript should stop when there is an error.
For example: script tries to change to a non-existing folder and then puts some files there. So the files get placed to a wrong folder.
For example: script tries to change to a non-existing folder and then puts some files there. So the files get placed to a wrong folder.
This would make the script unreadable.
I think the script should stop on any error.
I think the script should stop on any error.
May be something like would be more self explanatory:
STOPONERROR(ENABLE)
STOPONERROR(ENABLE)
liked Script FTP? Try our other product Email Parser
That would be perfect!
I will add it to the wish list. Thanks for contributing vjedlicka
liked Script FTP? Try our other product Email Parser
I know this thread had been inactive for years and is the direct opposite of what I want, but I have a suggestion.
Would it be possible to skip files with errors and log paths to those files and error codes to a different log file. So that at least files that do not have errors get synced.
Example:
$result=SYNC("E:\FOLDER","/FOLDER",UPLOAD,SUBDIRS,SKIP_ERROR,"path/to/error/log/file")
Would it be possible to skip files with errors and log paths to those files and error codes to a different log file. So that at least files that do not have errors get synced.
Example:
$result=SYNC("E:\FOLDER","/FOLDER",UPLOAD,SUBDIRS,SKIP_ERROR,"path/to/error/log/file")
I guess that this will only be possible when custom command creation is added to ScriptFTP. Adding this directly in SYNC would complicate the things too much. Custom commands would look something like this:
This will allow to create custom commands and eventually mimic the behavior of SYNC step by step, doing whatever you really need.
This feature is in the roadmap but there is no deadline nor have high priority right now, sorry
FTP Script
- PROCEDURE MyCommand $the_file $the_new_name
- END PROCEDURE
This feature is in the roadmap but there is no deadline nor have high priority right now, sorry
liked Script FTP? Try our other product Email Parser
- All times are UTC -