Comment 15 for bug 371289

Revision history for this message
Robin van Leeuwen (robinvanleeuwen) wrote : Re: [Bug 371289] Re: fail to delete directory over sshfs with nautilus

2011/4/17 rshadow <email address hidden>:
> Create .Trash directory is not fix the problem. I think we need `rm -fr`
> for <Shift+Delete>.

Indeed, creating a .Trash directory is not the answer. Nautilus gives
the option when i try to delete:

"Can't move to trash, do you want to skip op delete"

When i click delete, it deletes regular files just fine and empty
directories are also deleted fine.
Except non-empty directoties, those give the error "Permission
denied", but since i clicked "delete"
it should bypass the .Trash directory alltogether.

I don't think "rm -rf" is the answer either.
Because this isn't exactly the error which you'd expect when delete
when "rm -rf" would be the answer.

On a local filesystem:

rvl@home:~$ mkdir d
rvl@home:~$ touch d/f
rvl@home:~$ rm d
rm: cannot remove `d': Is a directory
rvl@home:~$ rmdir d
rmdir: failed to remove `d': Directory not empty

So something tells me that "rm -rf" won't work either, (and i guess
that rm -rf is already used)

man rm:
      -f, --force
              ignore nonexistent files, never prompt

So the -f won't fix a permission problem.

--
Robin van Leeuwen   |   http://www.rldsoftware.nl   |   Public Key:
http://www.rldsoftware.nl/key.txt