![]() Most Windows OFMs work the same way, if I can remember correctly (it's been a while), and it's Apple's own behaviour. Do you want to move it to the Trash anyway? (Apply to All) / Skip / Stop / Continue Warning upon trying to delete, but allowing you to override the flag and delete anyway, with a helpful message: ![]() ![]() Finder itself treats the flag as user would expect.Here is how other file manages deals with it: clicking User flags/Immutable one or two times (if multiple files selected).Realising from the error message that a file has "user immutable" (locked) flag or RO file attribute set (on FAT/others).With a thousand photos from one football game or wedding and tens or more are set as RO, there could be thousands of locked files later to deal with later, accumulated on temporary or backup disks, et cetera (normally, pro photo software deals with it during photo ingest, but not when copying by Finder or file managers.Ĭurrently, trying to delete a locked file in NC gives an error (vague one, although if the system call doesn't give you the exact reason it failed, I can well understand the vagueness!).ĭeleting them is a multi-step process with: These cameras use FAT32 storage, the FAT32 RO attribute gets read as uchg by Mac OS and presents the same problems. Digital cameras (especially professional ones) have a Lock button or function to tag important photos in-camera (usually by setting Read-only file attribute, for nearly three decades).Cross-OS disks (exFAT, FAT32.) where some files have a Read-only attribute set in Windows, for whatever user reasons (possibly same as above).Bit of a fringe case, but sometimes useful (Finder allows only copy, but file managers are not Finder). Now, it's Copy, keep them selected, Attributes, clear uf_immutable, Delete. Moving mixed locked and unlocked files - as above, but I have a bunch of mixed Locked and normal files that I need to organise or move to different folder, but keep the Locked attribute of those that have it.It's even encouraged by Apple as per this document, you can Lock a text file right from the document title when editing it. I come up upon user locked documents somewhat often when supporting users (and cleaning up some file storage mess). People use them in Finder on important documents as unlike permissions, the uchg flag is easily accessible from Finder "Get info" window, inherently more understandable to laic users than permissions and the user has less chance to mess up. The Locked checkbox in Finder (and the corresponding uchg flag) is used similar to Read-only file attribute under Windows, to prevent an accidental deletion or overwrite of an important file by the user, without potentially messing up permissions. I am of course only talking about the Read-only (FAT/FAT32/exFAT) and User Immutable (uf_immutable, uchg) flags only, not the system file flags or access permissions. Various context of file operations and file sources, I'll list a few examples. User should be always able to override any Read Only flags on files he has access permissions to, whatever the filesystem, unlike not having permissions (since flags are below access permissions and user already has access/R/W permissions to the file in order to set the flag in the first place). Same as with Read Only file attributes on FAT filesystems. Warn user - Skip/Skip all/Overwrite (all) or Delete (all) anyway/Abort, just like when overwriting any normal existing file. Retry or delete obviously does nothing.Įrror message is confusing, it says "couldn't be saved because you don't have permission" but issue is not permissions, it's flags.Ģ. Error: The file couldn't be saved because you don't have permission. This is different from insufficient user access permissions, this is a flag set in File Info dialog ("locked" tickbox) or via the chflags uchg terminal command and requires user access permission to be able to set or reset in the first place.Ĭurrent behaviour: Failed to move an item to Trash. Files that have the locked ( uchange) flag set can't be deleted.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |