File remove behaviour of Finder.
File remove behaviour of Finder.
- Subject: File remove behaviour of Finder.
- From: Evgeny Erokhin via Filesystem-dev <email@hidden>
- Date: Mon, 02 Nov 2020 11:31:38 +0300
Hi! I’m developing a file-system driver. And I faced a problem that I don’t
understand the logic behind Finder, how does it decides to remove a file or
delete if you click on «Move to Bin». In my case sometimes file move operation
isn’t available, so remove the file by moving it first to «.Trashes» may be
impossible.
I found at least one way to change this behavior by MNT_LOCAL option. If it’s
not set Finder honestly removes the file, but here the problem. If MNT_LOCAL
not set, when the file-system is mounted Finder doesn’t show the icon of
mounted FS either on the left panel and desktop. Only I can find it in Finder
if to go to the «Computer’s name» folder, where it shows all volumes (and my
one but with the wrong icon).
So here I have to options to solve a problem:
* Use MNT_LOCAL but here I need a way to force Finder to remove a file instead
of moving to «.Trashes». So here the question — is it possible to force to
remove files somehow?
* Clear MNT_LOCAL flag for FS, but here I need somehow to force Finder to show
my mounted volume and set the correct icon. So here the question is — how to
say to Finder to show this non-local FS, and to say what icon to use (in former
option it takes from my block-device).
Best regards,
Evgeny Erokhin
_______________________________________________
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