aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/EnvironmentService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-11-12 15:51:39 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-11-12 15:51:39 -0500
commitc6ce8342163a5665f29122aef02ce8068b349f16 (patch)
tree8c781650c45a6d44236728fb1f73dd6e60a7fea3 /MediaBrowser.Api/EnvironmentService.cs
parentbbd672bf95205ed441c1c0839bb2b0a751cc3d1b (diff)
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();
}