aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-08-06 09:52:39 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-08-06 09:52:39 -0500
commitf9be54cfc4ccb30f7f4601b91580ea01e48c9075 (patch)
treed7d3128bd6c6db75b34f15b032d5da2d7ad5f473 /src
parent39a1483ce5bef53c6e6d613c4251203d3531fae9 (diff)
downloadslskd-f9be54cfc4ccb30f7f4601b91580ea01e48c9075.tar.gz
implement share masking
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application/ISharedFileCache.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slskd/Application/ISharedFileCache.cs b/src/slskd/Application/ISharedFileCache.cs
index 291d78e4..4bc3f593 100644
--- a/src/slskd/Application/ISharedFileCache.cs
+++ b/src/slskd/Application/ISharedFileCache.cs
@@ -44,6 +44,14 @@ namespace slskd
Task FillAsync();
/// <summary>
+ /// Substitutes the mask in the specified <paramref name="filename"/> with the original path, if the mask is tracked
+ /// by the cache.
+ /// </summary>
+ /// <param name="filename">The fully qualified filename to unmask.</param>
+ /// <returns>The unmasked filename.</returns>
+ public string Resolve(string filename);
+
+ /// <summary>
/// Searches the cache for the specified <paramref name="query"/> and returns the matching files.
/// </summary>
/// <param name="query">The query for which to search.</param>