Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

harut

Thanks :wink:
martin

Re: get script

Use

get -delete MAIN/* "LOCAL_FOLDER"
harut

get script

Hi all,

I am trying to download all subfolders with files and after that delete subfolders.
Subfolders are located on "MAIN" directory.
I'm using this command:

get -delete MAIN/ "LOCAL_FOLDER"

It downloaded subfolders with files, deleted subfolders, however also wonted to delete MAIN directory. User hasn't access to delete MAIN directory and on logs I saw this errors:

Error deleting file '/MAIN'. ("Permission denied.
Error code: 3
Error message from server: Permission denied")
Script: Error deleting file '/MAIN'.
Script: Permission denied.
Error code: 3
Error message from server: Permission denied
Script: Failed
Script: Exit code: 1

Exit code 1 which I use to generate error messages.

So which script will get subfolders with files from MAIN directory, after get delete only that subfolders and doesn't try to delete MAIN directory by generating error messages.

Thanks