Topic "get script"

Author Message
harut
[View user's profile]

Joined: 2015-07-27
Posts: 2
Location: Armenia
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Use

get -delete MAIN/* "LOCAL_FOLDER"
harut
[View user's profile]

Joined: 2015-07-27
Posts: 2
Location: Armenia
Thanks Wink
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License