added handling for windows files

This commit is contained in:
Flaminel
2025-02-22 00:06:34 +02:00
parent 8c8d412ef1
commit 9b68792ea9
3 changed files with 66 additions and 11 deletions
@@ -38,9 +38,7 @@ public class UnixHardlinkFileService
: 1; // Default to 1 if not found
_logger.LogDebug("stat file | hardlinks: {nlink} | ignored: {ignored} | {file}", stat.st_nlink, linksInIgnoredDir, filePath);
long adjustedCount = (long)stat.st_nlink - linksInIgnoredDir;
return Math.Max(adjustedCount, 0);
return (long)stat.st_nlink - linksInIgnoredDir;
}
catch (Exception exception)
{