diff options
Diffstat (limited to '')
-rw-r--r-- | CPP/Windows/FileSystem.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/CPP/Windows/FileSystem.cpp b/CPP/Windows/FileSystem.cpp index d11f02e..b402306 100644 --- a/CPP/Windows/FileSystem.cpp +++ b/CPP/Windows/FileSystem.cpp | |||
@@ -157,6 +157,31 @@ bool MyGetDiskFreeSpace(CFSTR rootPath, UInt64 &clusterSize, UInt64 &totalSize, | |||
157 | 157 | ||
158 | #endif | 158 | #endif |
159 | 159 | ||
160 | /* | ||
161 | bool Is_File_LimitedBy_4GB(CFSTR _path, bool &isFsDetected) | ||
162 | { | ||
163 | isFsDetected = false; | ||
164 | FString path (_path); | ||
165 | path.DeleteFrom(NName::GetRootPrefixSize(path)); | ||
166 | // GetVolumeInformation supports super paths. | ||
167 | // NName::If_IsSuperPath_RemoveSuperPrefix(path); | ||
168 | if (!path.IsEmpty()) | ||
169 | { | ||
170 | DWORD volumeSerialNumber, maximumComponentLength, fileSystemFlags; | ||
171 | UString volName, fileSystemName; | ||
172 | if (MyGetVolumeInformation(path, volName, | ||
173 | &volumeSerialNumber, &maximumComponentLength, &fileSystemFlags, | ||
174 | fileSystemName)) | ||
175 | { | ||
176 | isFsDetected = true; | ||
177 | if (fileSystemName.IsPrefixedBy_Ascii_NoCase("fat")) | ||
178 | return true; | ||
179 | } | ||
180 | } | ||
181 | return false; | ||
182 | } | ||
183 | */ | ||
184 | |||
160 | }}} | 185 | }}} |
161 | 186 | ||
162 | #endif | 187 | #endif |