get script

Advertisement

harut
Joined:
Posts:
2
Location:
Armenia

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,791
Location:
Prague, Czechia

Re: get script

Use

get -delete MAIN/* "LOCAL_FOLDER"

Reply with quote

Advertisement

You can post new topics in this forum