From 9bbedd6f504e33d908fe52815e9b58bcebf7baa4 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 21 Sep 2022 20:34:58 -0500 Subject: add Create(). validate tables and create if needed when filling --- src/slskd/Shares/ISharedFileCache.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/slskd/Shares/ISharedFileCache.cs') diff --git a/src/slskd/Shares/ISharedFileCache.cs b/src/slskd/Shares/ISharedFileCache.cs index 52c7783c..61312a37 100644 --- a/src/slskd/Shares/ISharedFileCache.cs +++ b/src/slskd/Shares/ISharedFileCache.cs @@ -39,6 +39,12 @@ namespace slskd.Shares /// The contents of the cache. IEnumerable Browse(); + /// + /// (Re)Creates the cache. + /// + /// A value indicating whether an existing cache should be discarded prior to creation. + void Create(bool discardExisting = false); + /// /// Scans the configured shares and fills the cache. /// -- cgit v1.2.3