updated copy/move to use new create directory helper in nodeparameters

fixed spelling mistake
This commit is contained in:
reven
2021-11-29 11:27:13 +13:00
parent 63d06b75aa
commit 197d512526
10 changed files with 6 additions and 8 deletions

Binary file not shown.

View File

@@ -79,7 +79,7 @@
"Description": "Tests the working file and original file against a regular expression.\n\nOutput 1: Matches expression\nOutput 2: Does not match",
"Fields": {
"Pattern": "Pattern",
"Pattern-Help": "A regular expression, using the C# specifciation for regular expressions."
"Pattern-Help": "A regular expression, using the C# specification for regular expressions."
}
},
"PatternReplacer": {

View File

@@ -52,8 +52,7 @@ namespace FileFlows.BasicNodes.File
dest = Path.Combine(dest, new FileInfo(args.FileName).Name);
var destDir = new FileInfo(dest).DirectoryName;
if (Directory.Exists(destDir) == false)
Directory.CreateDirectory(destDir);
args.CreateDirectoryIfNotExists(destDir ?? String.Empty);
// have to use file streams so we can report progress
int bufferSize = 1024 * 1024;

View File

@@ -49,8 +49,7 @@ namespace FileFlows.BasicNodes.File
}
var destDir = fiDest.DirectoryName;
if (string.IsNullOrEmpty(destDir) == false && Directory.Exists(destDir) == false)
Directory.CreateDirectory(destDir);
args.CreateDirectoryIfNotExists(destDir ?? String.Empty);
if (args.MoveFile(dest) == false)
return -1;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,17 +1,17 @@
[
{
"Name": "BasicNodes",
"Version": "0.0.1.16",
"Version": "0.0.1.17",
"Package": "https://github.com/revenz/FileFlowsPlugins/blob/master/Builds/BasicNodes.zip?raw=true"
},
{
"Name": "MetaNodes",
"Version": "0.0.1.16",
"Version": "0.0.1.17",
"Package": "https://github.com/revenz/FileFlowsPlugins/blob/master/Builds/MetaNodes.zip?raw=true"
},
{
"Name": "VideoNodes",
"Version": "0.0.1.16",
"Version": "0.0.1.17",
"Package": "https://github.com/revenz/FileFlowsPlugins/blob/master/Builds/VideoNodes.zip?raw=true"
}
]