Topic "keepuptodate: cannot remove folder"

Author Message
prietor
[View user's profile]

Joined: 2009-03-02
Posts: 4
Hi,

Using keepuptodate from commandline, I can't remove a folder which contains a subfolder. I execute the next command:

WinSCP.exe /console /command "option batch continue" "open test" "keepuptodate -delete"

In the local folder I have the next directory structure:

--- test
......|--- 1.txt
......|--- 2
...........|----2.txt

When I delete the local "test" folder, I get the next Windows error: "Cannor delete folder test: the directory is not empty". And at the remote side my ftp filezilla server only deletes 1.txt file. Why? Am I doing something wrong?

Can you reproduce it?

Any other operation works fine and is replied properly to the remote side.

I'm using WinSCP 4.1.8.

Thanks in advance,
Javier
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
You cannot delete directory structures, because WinSCP watches all subdirectories for changes. This keeps them locked.
_________________
Martin Prikryl
prietor
[View user's profile]

Joined: 2009-03-02
Posts: 4
Ok, I didn't expect that behaviour when I read about keepuptodate in the documentation.

What alternative do you suggest me to synchronize (asynchronously like keepuptodate) directory structures deletion or renaming? Is there any way to do it with WinSCP?

Thanks for your support,
Javier
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Well I do not know how ofter you need to delete directory structures. You can definitelly delete directories one by one.
_________________
Martin Prikryl
prietor
[View user's profile]

Joined: 2009-03-02
Posts: 4
Ok, thanks anyway. Finally, I will use a synchronous alternative using synchronize command to keep up to date the directories structures at least each hour (nowadays, I don't need high avalability for those directories)
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