sshfs icon indicating copy to clipboard operation
sshfs copied to clipboard

Cannot delete empty directory

Open sporring opened this issue 7 years ago • 1 comments

Hi,

I've mounted a linux partition using sshfs using the terminal as:

sshfs -o follow_symlinks myname@myserver: mydir -o volname=mydir

There I have an empty directory, which I've just created, but now cannot delete:

$ ls -la 3dvesicleSnakes/
total 4096
drwx------  1 282223126  staff  46 Mar  6 14:31 .
drwx------  1 282223126  staff  33 Mar  6 14:31 ..
$ rm -rf 3dvesicleSnakes 
rm: 3dvesicleSnakes: Directory not empty

I'm running macOS 10.12.3, and

$ sshfs --version
SSHFS version 2.8
OSXFUSE 3.5.5
FUSE library version: 2.9.7
fuse: no mount point

If I log onto myserver, there I'm able to delete the directory. Any ideas?

Thanks, Jon

sporring avatar Mar 06 '17 13:03 sporring

Apologies if I'm bumping a ghost issue.

I had the same kind of problem until I removed follow_symlinks option. I didn't get a chance to dig what is going wrong, but I suspect if there is a broken or 'unresolvable' symlink, it doesn't show up in the mount and it somehow breaks the operation. (Although tab complete suggests the files that aren't displayed)

shyam334 avatar Jul 26 '18 00:07 shyam334