Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
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)

Options

Topic review

martin

@trudwin: Thanks for sharing your findings.
trudwin

Just wanted to mention that I had a similar problem. I also got “Directory not empty” while trying to delete a directory.

In my case, the issue was a symlink inside the directory with an invalid target. The FTP and SFTP server of my hoster (Hetzner) did not list the symlink when the client requested the content of the directory. Since WinSCP could not see the symlink within the directory, it just tried to delete the directory. However, since the directory still contained the symlink, the operation always failed.

Funnily enough, I actually created the symlink myself via SFTP. Initially, I thought that creating symlinks is not supported by the SFTP server. The file did not appear after creating it. Only a few days later, I tied to delete the directory and eventually noticed that the SFTP server created the symlink as requested, but did not support listing symlinks.
martin

Re: Error deleting a directory in winscp, (directory not empty)

Please attach a full session log file showing the problem (using the latest version of WinSCP). Please enter the (empty) folder, leave it, and then try to delete it.

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
gamingsDK

Error deleting a directory in WinSCP, (directory not empty)

Every time I want to delete a directory which have other directory called node_modules or is node_modules it says error deleting, directory not empty but when I get in the directory this is empty, some help please?