Thanks for the answer!
if a user mounts a network volume, moves files to the trash, unmounts the network volume, and never returns to that network volume, files are left in the trash forever
This isn’t really an issue, since there is a one user for one volume rule.
The only network locations that still support trash are network home directories
This is an option we considered early in the development. I’ll keep that in mind.
I’ve also noticed that iCloud Drive, upon deletion from the Finder, sends files to the local Trash and warns the user of what it’s doing. Is this a behaviour I could implement in my own filesystem?
-- Charles Francoise Lead Mac Developer @ Lima
Apple doesn't support trash directories (or temporary item directories) on network volumes and hasn't for quite a while because there is no good mechanism to clean up trash on network volumes (i.e., if a user mounts a network volume, moves files to the trash, unmounts the network volume, and never returns to that network volume, files are left in the trash forever). The only network locations that still support trash are network home directories -- in this case, the trash folder is within the network home directory so any user quotas can be enforced and documents moved to the trash are still within that user's control (no privacy issues).
- Jim On Apr 12, 2016, at 2:38 AM, Charles Francoise < email@hidden> wrote:
Hi,
I’m currently working on a network filesystem that can only be used by one user at any time (similarly to a cloud drive).
Since only one user manipulates the files at any time, it would be interesting to have a network Trash. Is this something that can be done? Either by exposing a “Trash enabled” capability for the filesystem, or perhaps in the kernel extension for the filesystem?
Thanks,
-- Charles Francoise Lead Mac Developer @ Lima
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|