#1362 new defect

SFTP: should removing a non-empty directory be permitted?

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 (last modified by warner)

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.

Change History (1)

comment:1 Changed at 2014-12-02T19:52:22Z by warner

  • Component changed from code-frontend to code-frontend-ftp-sftp
  • Description modified (diff)
Note: See TracTickets for help on using tickets.