aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-09-13 09:36:52 -0500
committerJP Dillingham <jp@dillingham.me>2022-09-13 09:36:52 -0500
commitbc6278db4a6c8e402ba1c7685d4983b3808ef276 (patch)
tree33280806740d12c65a9928958c71a0525ceaa961 /src
parent8b9aa2a4bf37d8b88397efb63a4d4f0d24611435 (diff)
downloadslskd-bc6278db4a6c8e402ba1c7685d4983b3808ef276.tar.gz
remove warnings about backslashes in file or directory names
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Shares/SharedFileCache.cs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/slskd/Shares/SharedFileCache.cs b/src/slskd/Shares/SharedFileCache.cs
index e865ff8d..814e7447 100644
--- a/src/slskd/Shares/SharedFileCache.cs
+++ b/src/slskd/Shares/SharedFileCache.cs
@@ -231,12 +231,6 @@ namespace slskd.Shares
{
Log.Debug("Starting scan of {Directory} ({Current}/{Total})", directory, current + 1, unmaskedDirectories.Count);
- if (Path.DirectorySeparatorChar == '/' && directory.Contains('\\'))
- {
- Log.Warning("Directory name {Directory} contains one or more backslashes, which are not currently supported. This directory will not be shared.", directory);
- continue;
- }
-
var addedFiles = 0;
var filteredFiles = 0;
@@ -273,12 +267,6 @@ namespace slskd.Shares
continue;
}
- if (Path.DirectorySeparatorChar == '/' && file.Filename.Contains('\\'))
- {
- Log.Warning("Filename {Filename} contains one or more backslashes, which are not currently supported. This file will not be shared.", file.Filename);
- continue;
- }
-
InsertFile(maskedFilename: file.Filename, originalFilename, touchedAt: info.LastWriteTimeUtc, file);
}
}