Opened at 2011-02-17T01:49:29Z
Last modified at 2014-12-02T19:52:22Z
#1362 new defect
SFTP: should removing a non-empty directory be permitted? — at Initial Version
Reported by: | davidsarah | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | undecided |
Component: | code-frontend-ftp-sftp | Version: | 1.8.2 |
Keywords: | sftp sshfs delete | Cc: | |
Launchpad Bug: |
Description
The SFTP frontend currently allows deleting a non-empty directory. This is a well-defined and useful operation on a Tahoe filesystem, but it would not be allowed on a POSIX filesystem.
It's unclear whether applications using SFTP via sshfs might rely on attempts to delete a non-empty directory being denied. In principle they could, but I've no evidence that this is common.
TODO: check whether rm [-r] [-f] on platforms that support sshfs explicitly checks that a directory is empty before trying to delete it.
Note: See
TracTickets for help on using
tickets.