Post a reply

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)


Topic review


Re: Delete only files - not the source folder

If you want to keep the source directory, make sure you are downloading its content, not the directory itself:
get /myremotepath/* /mylocalpath/ -delete

Delete only files - not the source folder

I'm having a trouble when using WinSCP from .NET Code.
The delete handle in get command deletes the source files but tries also to remove the source directory which gives me error in my log.xml file


    <filename value="/myremotepath" />
    <result success="false">
      <message>Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 15</message>

I'm trying to simply get all jpg files from one folder and delete them.

filemask="*/; *.jpg"
get /myremotepath /mylocalpath -delete

Thanks in advance!