aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/EnvironmentService.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2015-11-12 15:54:31 -0500
committerLuke <luke.pulverenti@gmail.com>2015-11-12 15:54:31 -0500
commit1051745fd12fdf6f999b7b3f89a7494655294cb0 (patch)
tree477a1889419505a57a77985a2563ac085fe314b2 /MediaBrowser.Api/EnvironmentService.cs
parentbccd26808143ddb2a873a3edca4291bf4a74babc (diff)
parentc6ce8342163a5665f29122aef02ce8068b349f16 (diff)
Merge pull request #1265 from MediaBrowser/master
update use of FileAttributes
Diffstat (limited to 'MediaBrowser.Api/EnvironmentService.cs')
-rw-r--r--MediaBrowser.Api/EnvironmentService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Api/EnvironmentService.cs b/MediaBrowser.Api/EnvironmentService.cs
index 3a31fc1d2..8fdfea6b4 100644
--- a/MediaBrowser.Api/EnvironmentService.cs
+++ b/MediaBrowser.Api/EnvironmentService.cs
@@ -231,7 +231,7 @@ namespace MediaBrowser.Api
return false;
}
- var isDirectory = i.Attributes.HasFlag(FileAttributes.Directory);
+ var isDirectory = i.IsDirectory;
if (!request.IncludeFiles && !isDirectory)
{
@@ -250,7 +250,7 @@ namespace MediaBrowser.Api
{
Name = f.Name,
Path = f.FullName,
- Type = f.Attributes.HasFlag(FileAttributes.Directory) ? FileSystemEntryType.Directory : FileSystemEntryType.File
+ Type = f.IsDirectory ? FileSystemEntryType.Directory : FileSystemEntryType.File
}).ToList();
}