mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Updated diskprovider to use GetFiles instead of EnumerateFiles to prevent a screwed up issue.
This commit is contained in:
@@ -52,14 +52,14 @@ namespace NzbDrone.Common
|
||||
return File.Exists(path);
|
||||
}
|
||||
|
||||
public virtual IEnumerable<string> GetDirectories(string path)
|
||||
public virtual string[] GetDirectories(string path)
|
||||
{
|
||||
return Directory.EnumerateDirectories(path);
|
||||
return Directory.GetDirectories(path);
|
||||
}
|
||||
|
||||
public virtual IEnumerable<string> GetFiles(string path, SearchOption searchOption)
|
||||
public virtual string[] GetFiles(string path, SearchOption searchOption)
|
||||
{
|
||||
return Directory.EnumerateFiles(path, "*.*", searchOption);
|
||||
return Directory.GetFiles(path, "*.*", searchOption);
|
||||
}
|
||||
|
||||
public virtual long GetDirectorySize(string path)
|
||||
|
||||
Reference in New Issue
Block a user