mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-01-06 10:49:43 -06:00
FF-1917: updated set working file to support custom names
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using FileFlows.Plugin;
|
||||
using FileFlows.Plugin.Attributes;
|
||||
|
||||
@@ -41,6 +42,13 @@ public class SetWorkingFile : Node
|
||||
args.Logger?.ELog(args.FailureReason);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (Regex.IsMatch(file, @"^[\w\d]{2,}:"))
|
||||
{
|
||||
// special case eg nc: for next cloud, where the file wont be accessible so we just set it so it appears nicely in the UI but its gone
|
||||
args.SetWorkingFile(file);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (args.FileService.FileExists(file))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user