diff options
| author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2025-08-03 00:00:00 +0000 |
|---|---|---|
| committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2025-08-03 16:14:59 +0500 |
| commit | 5e96a8279489832924056b1fa82f29d5837c9469 (patch) | |
| tree | d73ec17c25ab91a1938662bff0c37332fe521b70 /CPP/Windows/FileDir.h | |
| parent | 395149956d696e6e3099d8b76d797437f94a6942 (diff) | |
| download | 7zip-25.01.tar.gz 7zip-25.01.tar.bz2 7zip-25.01.zip | |
Diffstat (limited to 'CPP/Windows/FileDir.h')
| -rw-r--r-- | CPP/Windows/FileDir.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/CPP/Windows/FileDir.h b/CPP/Windows/FileDir.h index 65e6368..9ba98fc 100644 --- a/CPP/Windows/FileDir.h +++ b/CPP/Windows/FileDir.h | |||
| @@ -18,9 +18,20 @@ bool GetSystemDir(FString &path); | |||
| 18 | WIN32 API : SetFileTime() doesn't allow to set zero timestamps in file | 18 | WIN32 API : SetFileTime() doesn't allow to set zero timestamps in file |
| 19 | but linux : allows unix time = 0 in filesystem | 19 | but linux : allows unix time = 0 in filesystem |
| 20 | */ | 20 | */ |
| 21 | 21 | /* | |
| 22 | SetDirTime() can be used to set time for file or for dir. | ||
| 23 | If path is symbolic link, SetDirTime() will follow symbolic link, | ||
| 24 | and it will set timestamps of symbolic link's target file or dir. | ||
| 25 | */ | ||
| 22 | bool SetDirTime(CFSTR path, const CFiTime *cTime, const CFiTime *aTime, const CFiTime *mTime); | 26 | bool SetDirTime(CFSTR path, const CFiTime *cTime, const CFiTime *aTime, const CFiTime *mTime); |
| 23 | 27 | ||
| 28 | /* | ||
| 29 | SetLinkFileTime() doesn't follow symbolic link, | ||
| 30 | and it sets timestamps for symbolic link file itself. | ||
| 31 | If (path) is not symbolic link, it still can work (at least in some new OS versions). | ||
| 32 | */ | ||
| 33 | bool SetLinkFileTime(CFSTR path, const CFiTime *cTime, const CFiTime *aTime, const CFiTime *mTime); | ||
| 34 | |||
| 24 | 35 | ||
| 25 | #ifdef _WIN32 | 36 | #ifdef _WIN32 |
| 26 | 37 | ||
