Merge pull request #1265 from MediaBrowser/master

update use of FileAttributes
This commit is contained in:
Luke
2015-11-12 15:54:31 -05:00
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);
}
}