From c21edd799d16f71153fc839574ceac007c9e38ff Mon Sep 17 00:00:00 2001 From: Harley Wilson <54230223+harleyjwilson@users.noreply.github.com> Date: Sun, 27 Nov 2022 20:37:35 +0800 Subject: [PATCH] setfile: add page (#9554) * setfile: add page * setfile: fix typo * setfile: fix typo * setfile: fix typo * setfile: fix wording Co-authored-by: Emily Grace Seville * setfile: fix wording Co-authored-by: Emily Grace Seville * setfile: fix wording Co-authored-by: Emily Grace Seville Co-authored-by: Emily Grace Seville --- pages/osx/setfile.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/osx/setfile.md diff --git a/pages/osx/setfile.md b/pages/osx/setfile.md new file mode 100644 index 000000000..d3663140e --- /dev/null +++ b/pages/osx/setfile.md @@ -0,0 +1,16 @@ +# setfile + +> Sets file attributes on files in an HFS+ directory. +> More information: . + +- Set creation date for specific files: + +`setfile -d "{{MM/DD/YYYY HH:MM:SS}}" {{path/to/file1 path/to/file2 ...}}` + +- Set modification date for specific files: + +`setfile -m "{{MM/DD/YYYY HH:MM:SS}}" {{path/to/file1 path/to/file2 ...}}` + +- Set modification date for symlink file (not to linked file itself): + +`setfile -P -m "{{MM/DD/YYYY HH:MM:SS}}" {{path/to/file1 path/to/file2 ...}}`