From f42aeae2f9db1d10e0804c6d798abb608eebe585 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 19 Jun 2023 22:32:09 -0500 Subject: just pass EnumerationOptions --- src/slskd/Files/IFileService.cs | 47 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/slskd/Files/IFileService.cs diff --git a/src/slskd/Files/IFileService.cs b/src/slskd/Files/IFileService.cs new file mode 100644 index 00000000..a02f7a79 --- /dev/null +++ b/src/slskd/Files/IFileService.cs @@ -0,0 +1,47 @@ +// +// Copyright (c) slskd Team. All rights reserved. +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see https://www.gnu.org/licenses/. +// + +namespace slskd.Files +{ + using System.Collections.Generic; + using System.IO; + using System.Threading.Tasks; + + /// + /// Manages files on disk. + /// + public interface IFileService + { + /// + /// Recursively lists all of the files in the downloads directory, starting from the optional , and + /// optionally applying the specified . + /// + /// An optional parent directory from which to begin searching. + /// Optional enumeration options to apply. + /// The list of found files. + Task> ListDownloadedFiles(string parentDirectory = null, EnumerationOptions enumerationOptions = null); + + /// + /// Recursively lists all of the files in the incomplete directory, starting from the optional , and + /// optionally applying the specified . + /// + /// An optional parent directory from which to begin searching. + /// Optional enumeration options to apply. + /// The list of found files. + Task> ListIncompleteFiles(string parentDirectory = null, EnumerationOptions enumerationOptions = null); + } +} -- cgit v1.2.3