aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Application/ISharedFileCache.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-08-07 10:26:42 -0500
committerGitHub <noreply@github.com>2021-08-07 10:26:42 -0500
commit6bcad7b685ab3e3e89a18bb7b33fc4a2ab97d429 (patch)
tree7da34b973e84159eeff63659c350d9f4ee5fadd0 /src/slskd/Application/ISharedFileCache.cs
parentadca7674d78c73ef2f2bd505bd4652460794826c (diff)
parentd45ce99daf66967ab6ad8daf4d37be73a5626a54 (diff)
downloadslskd-6bcad7b685ab3e3e89a18bb7b33fc4a2ab97d429.tar.gz
Merge pull request #141 from slskd/share-hash
Substitute share paths with a hash
Diffstat (limited to 'src/slskd/Application/ISharedFileCache.cs')
-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>