mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-27 22:56:45 -04:00
Replaced built-in valuetypes with language keywords.
This commit is contained in:
@@ -75,7 +75,7 @@ namespace NzbDrone.Common
|
||||
{
|
||||
continue; // Ignore directories
|
||||
}
|
||||
String entryFileName = zipEntry.Name;
|
||||
string entryFileName = zipEntry.Name;
|
||||
// to remove the folder from the entry:- entryFileName = Path.GetFileName(entryFileName);
|
||||
// Optionally match entrynames against a selection list here to skip as desired.
|
||||
// The unpacked length is available in the zipEntry.Size property.
|
||||
@@ -84,7 +84,7 @@ namespace NzbDrone.Common
|
||||
Stream zipStream = zipFile.GetInputStream(zipEntry);
|
||||
|
||||
// Manipulate the output filename here as desired.
|
||||
String fullZipToPath = Path.Combine(destination, entryFileName);
|
||||
string fullZipToPath = Path.Combine(destination, entryFileName);
|
||||
string directoryName = Path.GetDirectoryName(fullZipToPath);
|
||||
if (directoryName.Length > 0)
|
||||
Directory.CreateDirectory(directoryName);
|
||||
|
||||
Reference in New Issue
Block a user