I copied files from one location to another using the following command.
cp -pr /path/to/source /path/to/destination
During execution, I saw the following error message on some files being copied over about chflags below.
chflags /Volumes/Share/Folder: Invalid argument
I did a file comparison with the old/new file and cannot see the difference.
Does anybody know what "invalid argument" means?
Thanks in advance.
cp
can't recreate all attributes on the remote folder after copying the contents of the files. When using-p
you directcp
to (according toman cp
) "to preserve the following attributes of each source file in the copy: <list of attributes>, file flags, <list of attributes>" but the remote folder doesn't seem to support setting flags, that's whychflags
complains. What I can't answer is whychflags
fails with error "invalid argument", I couldn't find a description of the error either inman 2 chflags
nor inman chflags
... – jaume Mar 15 '19 at 11:20