diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-09-24 13:50:49 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-09-24 13:50:49 -0400 |
| commit | f3e9bbed2361a2b0d9024186fe8854a136921cd9 (patch) | |
| tree | 55316c5c6f0a869fa110826ce73658228513691f /MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs | |
| parent | 76875e17ee951b967e591e7f8166ed8c1f45bbf6 (diff) | |
update file system methods
Diffstat (limited to 'MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs b/MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs index b8262d05f..853217826 100644 --- a/MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs +++ b/MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs @@ -111,8 +111,8 @@ namespace MediaBrowser.Server.Implementations.Devices try { - return Directory - .EnumerateFiles(path, "*", SearchOption.AllDirectories) + return _fileSystem + .GetFilePaths(path, true) .Where(i => string.Equals(Path.GetFileName(i), "device.json", StringComparison.OrdinalIgnoreCase)) .ToList() .Select(i => |
