Bugfix: Flatten wasn't consistent (#227)

* Ensure that when caching, the order of the cached files remains the same way as if we manually navigated through nested folders.
This commit is contained in:
Joseph Milazzo 2021-05-20 18:01:14 -05:00 committed by GitHub
parent 54878b14f4
commit fdc925812d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 12 deletions

View file

@ -62,10 +62,11 @@ namespace API.Services
}
if (fileCount > 1)
{
new DirectoryInfo(extractPath).Flatten();
}
new DirectoryInfo(extractPath).Flatten();
// if (fileCount > 1)
// {
// new DirectoryInfo(extractPath).Flatten();
// }
return chapter;
}