Added a sorting mechanism to emulate how windows sorts files. Refactored cache to support chapter folders as well.
This commit is contained in:
parent
6020697d7d
commit
f737f662df
11 changed files with 237 additions and 32 deletions
|
|
@ -67,7 +67,7 @@ namespace API.Services
|
|||
return dirs;
|
||||
}
|
||||
|
||||
public IEnumerable<string> ListFiles(string rootPath)
|
||||
public IList<string> ListFiles(string rootPath)
|
||||
{
|
||||
if (!Directory.Exists(rootPath)) return ImmutableList<string>.Empty;
|
||||
return Directory.GetFiles(rootPath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue