From 5d99b9e4e80a63e48ed8d226a733f66c0a61d313 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 26 Dec 2023 20:56:36 -0600 Subject: add logic to return a list of previous/active scans --- src/slskd/Shares/IShareRepository.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/slskd/Shares/IShareRepository.cs') diff --git a/src/slskd/Shares/IShareRepository.cs b/src/slskd/Shares/IShareRepository.cs index f1e59889..5546bff7 100644 --- a/src/slskd/Shares/IShareRepository.cs +++ b/src/slskd/Shares/IShareRepository.cs @@ -19,6 +19,7 @@ namespace slskd.Shares { using System; using System.Collections.Generic; + using System.Linq.Expressions; using Soulseek; /// @@ -130,6 +131,13 @@ namespace slskd.Shares /// The list of files. IEnumerable ListFiles(string parentDirectory = null, bool includeFullPath = false); + /// + /// Returns the list of all s matching the optionally specified . + /// + /// An optional expression used to filter scans. + /// The operation context, including the list of found scans. + IEnumerable ListScans(Expression> predicate = null); + /// /// Deletes directory records with a timestamp prior to the specified . /// -- cgit v1.2.3