keepuptodate: cannot remove folder

Advertisement

prietor
Joined:
Posts:
4

keepuptodate: cannot remove folder

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,504
Location:
Prague, Czechia

Re: keepuptodate: cannot remove folder

You cannot delete directory structures, because WinSCP watches all subdirectories for changes. This keeps them locked.

Reply with quote

prietor
Joined:
Posts:
4

Re: keepuptodate: cannot remove folder

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

Reply with quote

martin
Site Admin
martin avatar

Re: keepuptodate: cannot remove folder

Well I do not know how ofter you need to delete directory structures. You can definitelly delete directories one by one.

Reply with quote

prietor

Re: keepuptodate: cannot remove folder

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)

Reply with quote

Advertisement

You can post new topics in this forum