update use of FileAttributes

This commit is contained in:
Luke Pulverenti
2015-11-12 15:51:39 -05:00
parent bbd672bf95
commit c6ce834216
7 changed files with 10 additions and 11 deletions

View File

@@ -94,7 +94,7 @@ namespace MediaBrowser.Server.Implementations.Library
// If the subclass didn't supply a name, add it here
if (string.IsNullOrEmpty(item.Name) && !string.IsNullOrEmpty(item.Path))
{
item.Name = GetDisplayName(fileInfo.Name, (fileInfo.Attributes & FileAttributes.Directory) == FileAttributes.Directory);
item.Name = GetDisplayName(fileInfo.Name, fileInfo.IsDirectory);
}
}