mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-31 01:20:00 -06:00
FF-1151 - touch now creates the file if it does not exist
This commit is contained in:
@@ -39,7 +39,10 @@ public class Touch : Node
|
||||
{
|
||||
try
|
||||
{
|
||||
System.IO.File.SetLastWriteTimeUtc(filename, DateTime.UtcNow);
|
||||
if (System.IO.File.Exists(filename))
|
||||
System.IO.File.SetLastWriteTimeUtc(filename, DateTime.UtcNow);
|
||||
else
|
||||
System.IO.File.Create(filename);
|
||||
return 1;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user