diff options
Diffstat (limited to '')
-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 | ||