Well isn't that what I have done by dragging a copy of the folder to my desktop?You can try moving the contents to another non-package folder.
Well isn't that what I have done by dragging a copy of the folder to my desktop?You can try moving the contents to another non-package folder.
It is. I was reading too quickly and misread what you'd done. I thought you'd copied the original package folder to your desktop.Well isn't that what I have done by dragging a copy of the folder to my desktop?
lol. My caffeine has worn off too. Later.It is. I was reading too quickly and misread what you'd done. I thought you'd copied the original package folder to your desktop.
I think my error rate is too high in my current under-caffeinated state. I'll take a longer look at everything presented so far, and write a more measured reply later.
xattr -h ; ditto -h
usage: xattr [-l] [-r] [-s] [-v] [-x] file [file ...]
xattr -p [-l] [-r] [-s] [-v] [-x] attr_name file [file ...]
xattr -w [-r] [-s] [-x] attr_name attr_value file [file ...]
xattr -d [-r] [-s] attr_name file [file ...]
xattr -c [-r] [-s] file [file ...]
The first form lists the names of all xattrs on the given file(s).
The second form (-p) prints the value of the xattr attr_name.
The third form (-w) sets the value of the xattr attr_name to the string attr_value.
The fourth form (-d) deletes the xattr attr_name.
The fifth form (-c) deletes (clears) all xattrs.
options:
-h: print this help
-l: print long format (attr_name: attr_value and hex output has offsets and
ascii representation)
-r: act recursively
-s: act on the symbolic link itself rather than what the link points to
-v: also print filename (automatic with -r and with multiple files)
-x: attr_value is represented as a hex string for input and output
Usage: ditto [ <options> ] src [ ... src ] dst
<options> are any of:
-h print full usage
-v print a line of status for each source copied
-V print a line of status for every file copied
-X do not descend into directories with a different device ID
-c create an archive at dst (by default CPIO format)
-x src(s) are archives
-z gzip compress CPIO archive
-j bzip2 compress CPIO archive
-k archives are PKZip
--keepParent parent directory name src is embedded in dst_archive
--arch archVal fat files will be thinned to archVal
multiple -arch options can be specified
archVal should be one of "ppc", "i386", etc
--bom bomFile only objects present in bomFile are copied
--norsrc don't preserve resource data
--noextattr don't preserve extended attributes
--noqtn don't preserve quarantine information
--noacl don't preserve ACLs
--sequesterRsrc copy resources via polite directory (PKZip only)
--nocache don't use filesystem cache for reads/writes
--hfsCompression compress files at destination if appropriate
--nopreserveHFSCompression don't preserve HFS+ compression when copying files
--zlibCompressionLevel num use compression level 'num' when creating a PKZip archive
--password request password for reading from encrypted PKZip archive
/Volumes/disko/something
in a command, it refers to an item named "something" on the external disk. Also note that the leading '/' is significant. I'll generally give you things that should be directaly pasteable into a Terminal window. If I don't, I'll tell you first.ls -ldeO@ /Volumes/disko/master
ls -laeO@ /Volumes/disko/master
ls -ldeO@ ~
0: group:everyone deny delete
You can simplify things on your end by actually renaming your external drive to "disko".
Yes.External drive is partitioned, two volumes. So I just rename the relevant volume to disko, right?
drwxr-xr-x 2 username staff - 64 Mar 20 07:52 /Volumes/disko/master
total 29096
drwxr-xr-x 8 username staff - 256 Mar 20 08:01 .
drwxr-xr-x@ 35 username staff - 1120 Mar 20 07:52 ..
com.apple.FinderInfo 32
-rw-r--r--@ 1 username staff - 2318073 Apr 3 2009 P1050620.JPG
com.apple.FinderInfo 32
com.apple.ResourceFork 52889
com.apple.metadata:kMDItemSupportFileType 70
-rw-r--r--@ 1 username staff - 2570960 Apr 3 2009 P1050621.JPG
com.apple.FinderInfo 32
com.apple.ResourceFork 53586
com.apple.metadata:kMDItemSupportFileType 70
-rw-r--r--@ 1 username staff - 2476490 Apr 3 2009 P1050622.JPG
com.apple.FinderInfo 32
com.apple.ResourceFork 54021
com.apple.metadata:kMDItemSupportFileType 70
-rw-r--r--@ 1 username staff - 2427318 Apr 3 2009 P1050623.JPG
com.apple.FinderInfo 32
com.apple.ResourceFork 54039
com.apple.metadata:kMDItemSupportFileType 70
-rw-r--r--@ 1 username staff - 2403396 Apr 3 2009 P1050624.JPG
com.apple.FinderInfo 32
com.apple.ResourceFork 53837
com.apple.metadata:kMDItemSupportFileType 70
-rw-r--r--@ 1 username staff - 2355364 Apr 3 2009 P1050625.JPG
com.apple.FinderInfo 32
com.apple.ResourceFork 52112
com.apple.metadata:kMDItemSupportFileType 70
I was going to do some other things first.Let me see if I can guess the next step:
Code:attr -rc /Volumes/disko/master
Right?
mdutil -s -a
/Volumes/disko:
Indexing enabled.
/Volumes/cross-Pi:
Indexing disabled.
/:
Indexing enabled.
/Volumes/ignored:
Indexing and searching disabled.
mkdir -p /Volumes/disko/test5
ditto --norsrc --noextattr --noqtn --noacl \
/Volumes/disko/master/*.JPG /Volumes/disko/test5
ls -laeO@ /Volumes/disko/test5
cp -afR /Volumes/disko/master /Volumes/disko/test6
ls -laeO@ /Volumes/disko/test6
xattr -c -r /Volumes/disko/test6
ls -laeO@ /Volumes/disko/test6
/:
Indexing enabled.
/System/Volumes/Data:
Indexing enabled.
/System/Volumes/Data:
Indexing enabled.
/Volumes/ExternalHD:
Indexing enabled.
/Volumes/disko:
Indexing enabled.
total 28440
drwxr-xr-x 8 username staff - 256 Mar 20 18:10 .
drwxr-xr-x@ 36 username staff - 1152 Mar 20 18:10 ..
com.apple.FinderInfo 32
-rw-r--r-- 1 username staff - 2318073 Apr 3 2009 P1050620.JPG
-rw-r--r-- 1 username staff - 2570960 Apr 3 2009 P1050621.JPG
-rw-r--r-- 1 username staff - 2476490 Apr 3 2009 P1050622.JPG
-rw-r--r-- 1 username staff - 2427318 Apr 3 2009 P1050623.JPG
-rw-r--r-- 1 username staff - 2403396 Apr 3 2009 P1050624.JPG
-rw-r--r-- 1 username staff - 2355364 Apr 3 2009 P1050625.JPG
Either way. It won't matter.I don’t want to make an incorrect assumption. For test 6, am I supposed to paste first two lines in Terminal, hit enter and copy/paste results, then proceed to next two lines and do the same, or c/p all five lines at the same time?
It's the total size of files in the dir, measured in 512-byte blocks.In Test 5, what does “total 28440” represent?
mkdir example
ls -la example
touch example/empty
ls -la example
echo >example/single
ls -la example
total 29096
drwxr-xr-x 8 username staff - 256 Mar 20 08:01 .
drwxr-xr-x@ 37 username staff - 1184 Mar 20 23:28 ..
com.apple.FinderInfo 32
-rw-r--r--@ 1 username staff - 2318073 Apr 3 2009 P1050620.JPG
com.apple.FinderInfo 32
com.apple.ResourceFork 52889
com.apple.metadata:kMDItemSupportFileType 70
-rw-r--r--@ 1 username staff - 2570960 Apr 3 2009 P1050621.JPG
com.apple.FinderInfo 32
com.apple.ResourceFork 53586
com.apple.metadata:kMDItemSupportFileType 70
-rw-r--r--@ 1 username staff - 2476490 Apr 3 2009 P1050622.JPG
com.apple.FinderInfo 32
com.apple.ResourceFork 54021
com.apple.metadata:kMDItemSupportFileType 70
-rw-r--r--@ 1 username staff - 2427318 Apr 3 2009 P1050623.JPG
com.apple.FinderInfo 32
com.apple.ResourceFork 54039
com.apple.metadata:kMDItemSupportFileType 70
-rw-r--r--@ 1 username staff - 2403396 Apr 3 2009 P1050624.JPG
com.apple.FinderInfo 32
com.apple.ResourceFork 53837
com.apple.metadata:kMDItemSupportFileType 70
-rw-r--r--@ 1 username staff - 2355364 Apr 3 2009 P1050625.JPG
com.apple.FinderInfo 32
com.apple.ResourceFork 52112
com.apple.metadata:kMDItemSupportFileType 70
total 28440
drwxr-xr-x 8 username staff - 256 Mar 20 08:01 .
drwxr-xr-x@ 37 username staff - 1184 Mar 20 23:28 ..
com.apple.FinderInfo 32
-rw-r--r-- 1 username staff - 2318073 Apr 3 2009 P1050620.JPG
-rw-r--r-- 1 username staff - 2570960 Apr 3 2009 P1050621.JPG
-rw-r--r-- 1 username staff - 2476490 Apr 3 2009 P1050622.JPG
-rw-r--r-- 1 username staff - 2427318 Apr 3 2009 P1050623.JPG
-rw-r--r-- 1 username staff - 2403396 Apr 3 2009 P1050624.JPG
-rw-r--r-- 1 username staff - 2355364 Apr 3 2009 P1050625.JPG
com.apple.FinderInfo 32
com.apple.ResourceFork 53837
com.apple.metadata:kMDItemSupportFileType 70
drwxr-xr-x@ 37 username staff - 1184 Mar 20 23:28 ..
ls -al /Volumes/disko/
The difference between what I'm seeing with that output and what is shown in the volume is ".", "..", and ".DS_Store". Taking those into account, the total is 37.The number 37 for ".." is the number of hard-links to the root directory of the disk. On APFS, it might differ from the number of accessible directories at the root of the disk. I'm not entirely sure, because I don't know exactly how APFS magic like snapshots work. What's the output of this:
Code:ls -al /Volumes/disko/
man ls
. Be warned, it's a pretty long man page.man -t "ls" | open -f -a /Applications/Preview.app/
cp -afR /Volumes/disko/master /Volumes/disko/test-no-support
xattr -d -r "com.apple.metadata:kMDItemSupportFileType" \
/Volumes/disko/test-no-support
ls -laeO@ /Volumes/disko/test-no-support
cp -afR /Volumes/disko/master /Volumes/disko/test-no-finfo
xattr -d -r "com.apple.FinderInfo" \
/Volumes/disko/test-no-finfo
ls -laeO@ /Volumes/disko/test-no-finfo
cp -afR /Volumes/disko/master /Volumes/disko/test-no-rsrc
xattr -d -r "com.apple.ResourceFork" \
/Volumes/disko/test-no-rsrc
ls -laeO@ /Volumes/disko/test-no-rsrc
cp -afR /Volumes/disko/master /Volumes/disko/test-no-support
xattr -d -r "com.apple.metadata:kMDItemSupportFileType" \
/Volumes/disko/test-no-support
ls -laeO@ /Volumes/disko/test-no-support
I was looking for a prettier way to view man pages, and came across this, using Preview.app:
Code:man -t "ls" | open -f -a /Applications/Preview.app/
I think this might work on any recent macOS release, assuming Preview.app hasn't moved.
The application /Applications/Preview.app cannot be opened for an unexpected reason, error=Error Domain=NSCocoaErrorDomain Code=260 "The file “Preview.app” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///Applications/Preview.app/, NSFilePath=/Applications/Preview.app, NSUnderlyingError=0x14a70cd80 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}