diff options
| author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2024-08-11 00:00:00 +0000 |
|---|---|---|
| committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2024-08-12 16:50:32 +0500 |
| commit | e008ce3976c087bfd21344af8f00a23cf69d4174 (patch) | |
| tree | 17e556c773ed443dba6c659ec6ea1556f955d169 /CPP/Windows/FileSystem.cpp | |
| parent | a7a1d4a241492e81f659a920f7379c193593ebc6 (diff) | |
| download | 7zip-e008ce3976c087bfd21344af8f00a23cf69d4174.tar.gz 7zip-e008ce3976c087bfd21344af8f00a23cf69d4174.tar.bz2 7zip-e008ce3976c087bfd21344af8f00a23cf69d4174.zip | |
24.0824.08
Diffstat (limited to 'CPP/Windows/FileSystem.cpp')
| -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 |
