Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 4df57c2

Browse files
committed
Restore deleted code, it's going to be useful
1 parent f9b1488 commit 4df57c2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/GitHub.Api/Installer/ZipHelper.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,18 @@ public static void ExtractZipFile(string archive, string outFolder, Cancellation
118118
{
119119
Directory.CreateDirectory(directoryName);
120120
}
121+
//#if !WINDOWS
122+
// if (Environment.OSVersion.Platform == PlatformID.Unix || Environment.OSVersion.Platform == PlatformID.MacOSX)
123+
// {
124+
// if (zipEntry.ExternalFileAttributes > 0)
125+
// {
126+
// int fd = Mono.Unix.Native.Syscall.open(fullZipToPath,
127+
// Mono.Unix.Native.OpenFlags.O_CREAT | Mono.Unix.Native.OpenFlags.O_TRUNC,
128+
// (Mono.Unix.Native.FilePermissions)zipEntry.ExternalFileAttributes);
129+
// Mono.Unix.Native.Syscall.close(fd);
130+
// }
131+
// }
132+
//#endif
121133

122134
// Unzip file in buffered chunks. This is just as fast as unpacking to a buffer the full size
123135
// of the file, but does not waste memory.

0 commit comments

Comments
 (0)