SETFILE(1) | General Commands Manual | SETFILE(1) |
/usr/bin/SetFile
—
set attributes of files and directories
(DEPRECATED)
/usr/bin/SetFile |
[-P ] [-a
attributes] [-c
creator] [-d
date] [-m
date] [-t
type] file ... |
Tools supporting Carbon development, including
/usr/bin/SetFile
, were deprecated with Xcode 6.
/usr/bin/SetFile
is a tool to set the file
attributes on files in an HFS+ directory. It attempts to be similar to the
setfile
command in MPW. It can apply rules to more
than one file with the options applying to all files listed.
Flags:
-P
-a
attributesNote:
attributes not
specified remain unchanged.
-c
creator-d
dateNotes:
Enclose the string in quotation marks if it
contains spaces. The date must be in the Unix epoch, that is, between
1/1/1970 and 1/18/2038. If the year is provided as a two-digit year, it is
assumed to be in the 21st century and must be from 00 (2000) through 38
(2038).-m
date-d
above. (mm/dd/[yy]yy [hh:mm:[:ss]
[AM | PM]])-t
type0
1
2
This command line sets the modification date of "myFile":
SetFile -m "8/4/2001 16:13" myFile
January 4, 2009 | Mac OS X |