diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-08-06 09:52:39 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-08-06 09:52:39 -0500 |
| commit | f9be54cfc4ccb30f7f4601b91580ea01e48c9075 (patch) | |
| tree | d7d3128bd6c6db75b34f15b032d5da2d7ad5f473 /src | |
| parent | 39a1483ce5bef53c6e6d613c4251203d3531fae9 (diff) | |
| download | slskd-f9be54cfc4ccb30f7f4601b91580ea01e48c9075.tar.gz | |
implement share masking
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application/ISharedFileCache.cs | 8 |
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> |
