mirror of
https://github.com/Radarr/Radarr.git
synced 2024-07-04 11:07:59 +02:00
Compare commits
2 Commits
e60933900a
...
24c4ba6f02
Author | SHA1 | Date | |
---|---|---|---|
|
24c4ba6f02 | ||
|
5fc63ecb3f |
|
@ -153,7 +153,11 @@ public IEnumerable<string> GetDirectories(string path)
|
||||||
{
|
{
|
||||||
Ensure.That(path, () => path).IsValidPath(PathValidationType.CurrentOs);
|
Ensure.That(path, () => path).IsValidPath(PathValidationType.CurrentOs);
|
||||||
|
|
||||||
return Directory.EnumerateDirectories(path);
|
return Directory.EnumerateDirectories(path, "*", new EnumerationOptions
|
||||||
|
{
|
||||||
|
AttributesToSkip = FileAttributes.System,
|
||||||
|
IgnoreInaccessible = true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<string> GetFiles(string path, bool recursive)
|
public IEnumerable<string> GetFiles(string path, bool recursive)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user