aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Application/SharedFileCache.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Application/SharedFileCache.cs')
-rw-r--r--src/slskd/Application/SharedFileCache.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slskd/Application/SharedFileCache.cs b/src/slskd/Application/SharedFileCache.cs
index aeb2022a..1ebe76c6 100644
--- a/src/slskd/Application/SharedFileCache.cs
+++ b/src/slskd/Application/SharedFileCache.cs
@@ -73,6 +73,8 @@ namespace slskd
foreach (var directory in Directories)
{
+ Console.WriteLine(directory);
+
directories += System.IO.Directory.GetDirectories(directory, "*", SearchOption.AllDirectories).Length;
// recursively find all files in the directory and stick a record in a dictionary, keyed on the sanitized
@@ -86,6 +88,7 @@ namespace slskd
// the only time this *should* cause problems is if one of the shares is a subdirectory of another.
foreach (var file in newFiles)
{
+ Console.WriteLine(file.Key);
if (files.ContainsKey(file.Key))
{
Console.WriteLine($"[WARNING] File {file.Key} shared in directory {directory} has already been cached. This is probably a misconfiguration of the shared directories.");