aboutsummaryrefslogtreecommitdiff
path: root/CPP/Windows/FileDir.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--CPP/Windows/FileDir.h10
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 {
14bool GetWindowsDir(FString &path); 14bool GetWindowsDir(FString &path);
15bool GetSystemDir(FString &path); 15bool GetSystemDir(FString &path);
16 16
17bool SetDirTime(CFSTR path, const FILETIME *cTime, const FILETIME *aTime, const FILETIME *mTime); 17/*
18WIN32 API : SetFileTime() doesn't allow to set zero timestamps in file
19but linux : allows unix time = 0 in filesystem
20*/
21
22bool 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
37int my_chown(CFSTR path, uid_t owner, gid_t group);
30 38
31#endif 39#endif
32 40