mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 13:20:02 -06:00
FF-1001 - Created unpack flow element
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<FileVersion>1.1.1.528</FileVersion>
|
||||
<ProductVersion>1.1.1.528</ProductVersion>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
<PublishTrimmed>true</PublishTrimmed>
|
||||
<Company>FileFlows</Company>
|
||||
<Authors>John Andrews</Authors>
|
||||
|
||||
@@ -53,6 +53,9 @@ public class Unpack: Node
|
||||
}
|
||||
|
||||
string destDir = args.ReplaceVariables(DestinationPath, stripMissing: true, cleanSpecialCharacters: true);
|
||||
destDir = args.MapPath(destDir);
|
||||
if (Directory.Exists(destDir) == false)
|
||||
Directory.CreateDirectory(destDir);
|
||||
|
||||
if (fileInfo.Extension.ToLower() == ".zip")
|
||||
ZipFile.ExtractToDirectory(filename, destDir, true);
|
||||
|
||||
Reference in New Issue
Block a user