mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 11:19:31 -06:00
FF-1661: Fixed has hardlink returning false if there is only one hard link
This commit is contained in:
@@ -126,7 +126,7 @@ public class HasHardLinks: Node
|
||||
int linkCount;
|
||||
if (int.TryParse(output.Trim(), out linkCount))
|
||||
{
|
||||
if (linkCount > 1)
|
||||
if (linkCount > 0)
|
||||
{
|
||||
args.Logger?.ILog("The file has hard links.");
|
||||
return true;
|
||||
@@ -181,7 +181,7 @@ public class HasHardLinks: Node
|
||||
int linkCount;
|
||||
if (int.TryParse(output.Trim(), out linkCount))
|
||||
{
|
||||
if (linkCount > 1)
|
||||
if (linkCount > 0)
|
||||
{
|
||||
args.Logger?.ILog("The file has hard links.");
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user