mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 23:19:30 -06:00
FF-1194 - file service
This commit is contained in:
@@ -104,24 +104,19 @@ namespace FileFlows.BasicNodes.File
|
||||
{
|
||||
args.FileService.SetCreationTimeUtc(dest, dtCreateTimeUtc);
|
||||
args.FileService.SetLastWriteTimeUtc(dest, dtLastWriteUtc);
|
||||
|
||||
//Helpers.FileHelper.SetCreationTime(dest, dtCreateTimeUtc);
|
||||
//Helpers.FileHelper.SetLastWriteTime(dest, dtLastWriteUtc);
|
||||
}
|
||||
|
||||
var srcDir = FileHelper.GetDirectory(AdditionalFilesFromOriginal
|
||||
? args.MapPath(args.FileName)
|
||||
: args.MapPath(args.WorkingFile));
|
||||
? args.FileName
|
||||
: args.WorkingFile);
|
||||
|
||||
if (AdditionalFiles?.Any() == true)
|
||||
{
|
||||
try
|
||||
{
|
||||
//var diSrc = new DirectoryInfo(srcDir);
|
||||
foreach (var additional in AdditionalFiles)
|
||||
{
|
||||
//foreach (var addFile in diSrc.GetFiles(additional))
|
||||
foreach(var addFile in args.FileService.GetFiles(additional).ValueOrDefault ?? new string[] {})
|
||||
foreach(var addFile in args.FileService.GetFiles(srcDir, additional).ValueOrDefault ?? new string[] {})
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -34,16 +34,6 @@ public class FileExists: Node
|
||||
}
|
||||
args.Logger?.ILog("File does NOT exist: " + file);
|
||||
return 2;
|
||||
|
||||
// file = args.MapPath(file);
|
||||
// var fileInfo = new FileInfo(file);
|
||||
// if (fileInfo.Exists)
|
||||
// {
|
||||
// args.Logger?.ILog("File does exist: " + file);
|
||||
// return 1;
|
||||
// }
|
||||
// args.Logger?.ILog("File does NOT exist: " + file);
|
||||
// return 2;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
@@ -125,7 +125,6 @@ public class SubtitleExtractor : EncodingNode
|
||||
if (ExtractAll == false && string.IsNullOrEmpty(OutputFile) == false)
|
||||
{
|
||||
output = args.ReplaceVariables(OutputFile, true);
|
||||
output = args.MapPath(output);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -121,7 +121,6 @@ public class VideoExtractAudio : AudioSelectionEncodingNode
|
||||
else
|
||||
outputfile = args.FileName;
|
||||
}
|
||||
outputfile = args.MapPath(outputfile);
|
||||
|
||||
if (string.IsNullOrWhiteSpace(OutputCodec))
|
||||
OutputCodec = "mp3";
|
||||
|
||||
Reference in New Issue
Block a user