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.)
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.
xattr -rc 20170507
seems to remove the @ but didn't fix the problem