Fixed GetInProgress API - The condition for PagesRead needed to be a sum for all progress, not each row.
This commit is contained in:
parent
b8cd04e1de
commit
a125b2ac0b
7 changed files with 69 additions and 12 deletions
|
|
@ -39,7 +39,13 @@ namespace API.Services
|
|||
.Where(file =>
|
||||
reSearchPattern.IsMatch(Path.GetExtension(file)));
|
||||
}
|
||||
|
||||
|
||||
public bool Exists(string directory)
|
||||
{
|
||||
var di = new DirectoryInfo(directory);
|
||||
return di.Exists;
|
||||
}
|
||||
|
||||
public IEnumerable<string> GetFiles(string path, string searchPatternExpression = "",
|
||||
SearchOption searchOption = SearchOption.TopDirectoryOnly)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue