mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 21:12:43 +02: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