chickadee » hfs+ » copyfile-check

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:

aclsCOPYFILE_ACLACLs
statCOPYFILE_STATPOSIX stat(2) data
extended-attributesCOPYFILE_XATTRExtended 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