MovingPictures

HomePage | RecentChanges | Preferences

Moving Pictures

Moving image files from the laptop to the NAS often runs into this error:

$ mv -v 20170429 /Volumes/pictures/
20170429 -> /Volumes/pictures/20170429
20170429/.DS_Store -> /Volumes/pictures/20170429/.DS_Store
20170429/170429_3287.JPG -> /Volumes/pictures/20170429/170429_3287.JPG
...
20170429/170429_3299.JPG -> /Volumes/pictures/20170429/170429_3299.JPG
20170429/exports -> /Volumes/pictures/20170429/exports
mv: chflags: /Volumes/pictures/20170429/exports/170429_3293.JPG: Invalid argument
mv: /bin/cp: terminated with 1 (non-zero) status
ingenii:Pictures wsmoak$

Initial searches implied it was something to do with permissions, but I don't have any trouble deleting the files.

Listing the offending file shows an @ sign

$ ls -la /Volumes/pictures/20170429/exports/170429_3293.JPG
-rwxrwxrwx@ 1 wsmoak  staff  208090 Jul 11 12:09 /Volumes/pictures/20170429/exports/170429_3293.JPG

And that indicates the file has "extended attributes" -- Apple-specific things the NAS doesn't support (even though the file DOES get copied correctly, the command errors out and mv doesn't complete and delete the local files.)

https://unix.stackexchange.com/questions/10/what-does-the-mean-in-ls-l

Listing again with @ shows the extended attribute:

$ ls -la@ /Volumes/pictures/20170429/exports/170429_3293.JPG
-rwxrwxrwx@ 1 wsmoak  staff  208090 Jul 11 12:09 /Volumes/pictures/20170429/exports/170429_3293.JPG
	com.apple.quarantine	    22 

Need to figure out how to copy/move without those, or strip them off.

https://stackoverflow.com/questions/4833052/how-do-i-remove-the-extended-attributes-on-a-file-in-mac-os-x

xattr -rc 20170507

seems to remove the @ but didn't fix the problem


HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited July 11, 2017 9:27 am by 133-94-98-198.dsl.wavetel.us (diff)
Search: