- copyfile-check from #!rest optionsprocedure
Determines if any metadata is present in FROM using the #:check option to copyfile. Returns a list of symbols denoting metadata types that are present, from the following possibilities:
acls COPYFILE_ACL ACLs stat COPYFILE_STAT POSIX stat(2) data extended-attributes COPYFILE_XATTR Extended attributes Note: another way to check merely for the presence of metadata is to use the #:check option to copyfile. A positive value means present, a zero value means not present.
Example:
#;> (copyfile-check "foo.txt" #:metadata) (acls stat extended-attributes) #;> (copyfile-check "foo.txt" #:extended-attributes) (extended-attributes) #;> (copyfile-check "bar.txt" #:metadata) () #;> (> (copyfile "foo.txt" #f #:check #:metadata) 0) #t #;> (> (copyfile "bar.txt" #f #:check #:metadata) 0) #f