2020-04-23 20:15:06 +01:00
|
|
|
# GetFileInfo
|
|
|
|
|
|
|
|
> Get information about a file in an HFS+ directory.
|
2024-01-31 10:20:27 +00:00
|
|
|
> More information: <https://keith.github.io/xcode-man-pages/GetFileInfo.1.html>.
|
2020-04-23 20:15:06 +01:00
|
|
|
|
2020-12-04 12:37:44 +00:00
|
|
|
- Display information about a given file:
|
2020-04-23 20:15:06 +01:00
|
|
|
|
2023-12-02 04:53:50 +00:00
|
|
|
`GetFileInfo {{path/to/file}}`
|
2020-04-23 20:15:06 +01:00
|
|
|
|
2023-12-02 04:53:50 +00:00
|
|
|
- Display the [d]ate and time a given file was created:
|
2020-04-23 20:15:06 +01:00
|
|
|
|
2023-12-02 04:53:50 +00:00
|
|
|
`GetFileInfo -d {{path/to/file}}`
|
2020-04-23 20:15:06 +01:00
|
|
|
|
2023-12-02 04:53:50 +00:00
|
|
|
- Display the date and time a given file was last [m]odified:
|
2020-04-23 20:15:06 +01:00
|
|
|
|
2023-12-02 04:53:50 +00:00
|
|
|
`GetFileInfo -m {{path/to/file}}`
|
2020-04-23 20:15:06 +01:00
|
|
|
|
2023-12-02 04:53:50 +00:00
|
|
|
- Display the [c]reator of a given file:
|
2020-04-23 20:15:06 +01:00
|
|
|
|
2023-12-02 04:53:50 +00:00
|
|
|
`GetFileInfo -c {{path/to/file}}`
|