aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-09-24 13:50:49 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-09-24 13:50:49 -0400
commitf3e9bbed2361a2b0d9024186fe8854a136921cd9 (patch)
tree55316c5c6f0a869fa110826ce73658228513691f /MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs
parent76875e17ee951b967e591e7f8166ed8c1f45bbf6 (diff)
update file system methods
Diffstat (limited to 'MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs4
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 =>