diff --git a/API/Interfaces/Services/IDirectoryService.cs b/API/Interfaces/Services/IDirectoryService.cs index c22fa1189..f9e8345bd 100644 --- a/API/Interfaces/Services/IDirectoryService.cs +++ b/API/Interfaces/Services/IDirectoryService.cs @@ -20,19 +20,6 @@ namespace API.Interfaces.Services /// string[] GetFilesWithExtension(string path, string searchPatternExpression = ""); Task ReadFileAsync(string path); - - /// - /// Deletes all files within the directory, then the directory itself. - /// - /// - //void ClearAndDeleteDirectory(string directoryPath); - /// - /// Deletes all files within the directory. - /// - /// - /// - //void ClearDirectory(string directoryPath); - bool CopyFilesToDirectory(IEnumerable filePaths, string directoryPath); bool Exists(string directory); diff --git a/API/Services/ArchiveService.cs b/API/Services/ArchiveService.cs index c10517d82..3cda2b4a1 100644 --- a/API/Services/ArchiveService.cs +++ b/API/Services/ArchiveService.cs @@ -80,7 +80,7 @@ namespace API.Services { _logger.LogDebug("Using SharpCompress compression handling"); using var archive = ArchiveFactory.Open(archivePath); - return archive.Entries.Where(entry => !entry.IsDirectory && Parser.Parser.IsImage(entry.Key)).Count(); + return archive.Entries.Count(entry => !entry.IsDirectory && Parser.Parser.IsImage(entry.Key)); } case ArchiveLibrary.NotSupported: _logger.LogError("[GetNumberOfPagesFromArchive] This archive cannot be read: {ArchivePath}. Defaulting to 0 pages", archivePath); diff --git a/API/Services/MetadataService.cs b/API/Services/MetadataService.cs index ccde75ae0..4c1dbc118 100644 --- a/API/Services/MetadataService.cs +++ b/API/Services/MetadataService.cs @@ -62,7 +62,7 @@ namespace API.Services public void UpdateMetadata(Series series, bool forceUpdate) { - // TODO: this doesn't actually invoke finding a new cover. Also all these should be grouped ideally so we limit + // NOTE: this doesn't actually invoke finding a new cover. Also all these should be grouped ideally so we limit // disk I/O to one method. if (series == null) return; if (ShouldFindCoverImage(series.CoverImage, forceUpdate))