mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-21 15:16:33 -04:00
Various bug fixes (#3667)
This commit is contained in:
@@ -363,16 +363,15 @@ public class ArchiveService : IArchiveService
|
||||
tempPath = Path.Join(tempLocation, parentDirectory ?? _directoryService.FileSystem.FileInfo.New(path).Name);
|
||||
}
|
||||
|
||||
progressCallback(Tuple.Create(_directoryService.FileSystem.FileInfo.New(path).Name, (1.0f * totalFiles) / count));
|
||||
if (Tasks.Scanner.Parser.Parser.IsArchive(path))
|
||||
{
|
||||
ExtractArchive(path, tempPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
_directoryService.CopyFileToDirectory(path, tempPath);
|
||||
// Archives don't need to be put into a subdirectory of the same name
|
||||
tempPath = _directoryService.GetParentDirectoryName(tempPath);
|
||||
}
|
||||
|
||||
progressCallback(Tuple.Create(_directoryService.FileSystem.FileInfo.New(path).Name, (1.0f * totalFiles) / count));
|
||||
|
||||
_directoryService.CopyFileToDirectory(path, tempPath);
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user