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
@@ -24,7 +24,7 @@ public class HardlinkFileService : IHardlinkFileService
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
// TODO
_windowsHardlinkFileService.PopulateFileIndexCounts(directoryPath);
return;
}
@@ -41,7 +41,7 @@ public class HardlinkFileService : IHardlinkFileService
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
return _windowsHardlinkFileService.GetWindowsHardLinkCount(filePath);
return _windowsHardlinkFileService.GetWindowsHardLinkCount(filePath, ignoreRootDir);
}
return _unixHardlinkFileService.GetHardlinkCount(filePath, ignoreRootDir);