diff options
author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2022-06-20 00:00:00 +0000 |
---|---|---|
committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2023-12-17 13:35:20 +0500 |
commit | a3e1d227377188734b82f023f96f8e25dc40f3e6 (patch) | |
tree | 23cad8d47eb23d26ea727b4f7f4a65124f724065 /CPP/Windows/FileDir.h | |
parent | f19f813537c7aea1c20749c914e756b54a9c3cf5 (diff) | |
download | 7zip-22.00.tar.gz 7zip-22.00.tar.bz2 7zip-22.00.zip |
22.0022.00
Diffstat (limited to 'CPP/Windows/FileDir.h')
-rw-r--r-- | CPP/Windows/FileDir.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/CPP/Windows/FileDir.h b/CPP/Windows/FileDir.h index 6d6ddea..08281aa 100644 --- a/CPP/Windows/FileDir.h +++ b/CPP/Windows/FileDir.h | |||
@@ -14,7 +14,12 @@ namespace NDir { | |||
14 | bool GetWindowsDir(FString &path); | 14 | bool GetWindowsDir(FString &path); |
15 | bool GetSystemDir(FString &path); | 15 | bool GetSystemDir(FString &path); |
16 | 16 | ||
17 | bool SetDirTime(CFSTR path, const FILETIME *cTime, const FILETIME *aTime, const FILETIME *mTime); | 17 | /* |
18 | WIN32 API : SetFileTime() doesn't allow to set zero timestamps in file | ||
19 | but linux : allows unix time = 0 in filesystem | ||
20 | */ | ||
21 | |||
22 | bool SetDirTime(CFSTR path, const CFiTime *cTime, const CFiTime *aTime, const CFiTime *mTime); | ||
18 | 23 | ||
19 | 24 | ||
20 | #ifdef _WIN32 | 25 | #ifdef _WIN32 |
@@ -27,6 +32,9 @@ bool SetFileAttrib(CFSTR path, DWORD attrib); | |||
27 | SetFileAttrib_PosixHighDetect() tries to detect posix field, and it extracts only attribute | 32 | SetFileAttrib_PosixHighDetect() tries to detect posix field, and it extracts only attribute |
28 | bits that are related to current system only. | 33 | bits that are related to current system only. |
29 | */ | 34 | */ |
35 | #else | ||
36 | |||
37 | int my_chown(CFSTR path, uid_t owner, gid_t group); | ||
30 | 38 | ||
31 | #endif | 39 | #endif |
32 | 40 | ||