Topic "Doesn't release lock on folder for other programs to delete, even though no long in that folder"

Author Message


I use winscp to transfer plugins I build in Eclipse down to our Linux machines. The problem is that once I have navigated to the Eclipse 'target' folder where the compiled plugin jar exists, Eclipse throws an error on the next compilation because WinSCP has some kind of lock on the folder, even if I have navigated out of that folder and clicked 'Refresh' in WinSCP.

Eclipse will throw this at compile time, even though I'm no longer in in that folder in WinSCP. WinSCP seems to retain some kind of lock on the folder when not actually navigating it. Stopping WinSCP will allow the plugin to compile successfully, but I have to keep quitting and restarting WinSCP, which is a royal pain. Is there an option somewhere to control this behaviour of WinSCP?

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project PluginTest: Failed to clean project: Failed to delete C:\Users\Bob\workspace\PluginTest\target
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27083
Location: Prague, Czechia
It's about local folder, right?

I cannot reproduce the problem.

If you navigate to some regular folder (not the Eclipse target folder), leave it and then try to remove the folder in Windows Explorer, what happens?

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License