Locked files
#1
Posted 05 June 2012 - 09:06 AM
Can anyone help on how to unlock all files within a specific folder (and subfolders)?
Thanks
#2
Posted 05 June 2012 - 10:37 AM
jam2000, on 05 June 2012 - 09:06 AM, said:
Can anyone help on how to unlock all files within a specific folder (and subfolders)?
So many choices. The most direct one is this:
chflags -R nouchg /path/to/root/jpeg/folder/
Word by word, this is:
change flags on the specified item(s)
recursively
turn off the "unchangeable" flag
[and then the list of items to operate on]
This post has been edited by bastion: 05 June 2012 - 10:39 AM
#3
Posted 05 June 2012 - 12:23 PM
This post has been edited by jam2000: 05 June 2012 - 12:23 PM
#5
Posted 05 June 2012 - 02:06 PM
BTW if you Select All, then just Get Info, you can close all 12 million windows with COMMAND OPTION W...then start again.
#6
Posted 05 June 2012 - 02:53 PM
#7
Posted 05 June 2012 - 02:59 PM
Martian, on 05 June 2012 - 02:06 PM, said:
BTW if you Select All, then just Get Info, you can close all 12 million windows with COMMAND OPTION W...then start again.
And that works on a complete folder hierarchy? Cool. I've learn something new today.
...
No, in fact it doesn't. So I suppose if you have all 30,000 images in a single folder this technique would work in that the images themselves would be part of the selection, and that I knew. But it never occurred to me that the OP would have that many files all in a single view. The terminal command I offered would traverse an entire directory tree. Different tools for different needs.
This post has been edited by bastion: 05 June 2012 - 03:07 PM
#8
Posted 05 June 2012 - 03:16 PM
#9
Posted 05 June 2012 - 03:30 PM
jam2000, on 05 June 2012 - 03:16 PM, said:
But on cursory examination, it seems that after Selecting All in the top folder, you can then COMMAND OPTION Right Arrow which should open all the subfolder layers at once. Then again do a Select All to select every file (and folder, but that's harmless) followed by the Show Inspector. I just tried it on my Air running Lion on two layers of subfolders with a total of about 1000 jpegs and it worked.
I first locked, spot tested, then unlocked the 1000 files. I don't see why 30 times as many jpegs and a deeper hierarchy should be qualitatively different.
This post has been edited by Martian: 05 June 2012 - 03:38 PM
#10
Posted 05 June 2012 - 03:42 PM
Martian, on 05 June 2012 - 03:30 PM, said:
jam2000, on 05 June 2012 - 03:16 PM, said:
But on cursory examination, it seems that after Selecting All in the top folder, you can then COMMAND OPTION Right Arrow which should open all the subfolder layers at once. Then again do a Select All to select every file (and folder, but that's harmless) followed by the Show Inspector. I just tried it on my Air running Lion on two layers of subfolders with a total of about 1000 jpegs and it worked.
I first locked, spot tested, then unlocked the 1000 files. I don't see why 30 times as many jpegs and a deeper hierarchy should be qualitatively different.
Only that UI responsiveness goes into the toilet after several thousand files in a single view.
#11
Posted 05 June 2012 - 03:56 PM
bastion, on 05 June 2012 - 03:42 PM, said:
Oh. I guess also that this would be a more serious problem on a conventional HD (which I assume the OP was using) -- I did my experiment on an Air with its internal SSD
#12
Posted 05 June 2012 - 05:30 PM
Martian, on 05 June 2012 - 03:56 PM, said:
bastion, on 05 June 2012 - 03:42 PM, said:
Oh. I guess also that this would be a more serious problem on a conventional HD (which I assume the OP was using) -- I did my experiment on an Air with its internal SSD
SSD helps a lot, but it still goes downhill pretty rapidly. For example I just created 1000 empty files in a new folder, then opened the folder. That took several seconds, just to open. I tried again with 30000 files. Took 6 seconds just for the first batch of 4000 to be recognized and minutes to reflect the whole set. That is, to be clear, with an SSD.
.
Help










