fixes #255 - Access to the path is denied

This commit is contained in:
Luke Pulverenti
2013-05-10 15:21:55 -04:00
parent 1b75668d00
commit 6a740f7ea5
3 changed files with 4 additions and 11 deletions

View File

@@ -269,7 +269,9 @@ namespace MediaBrowser.Controller.Entities
// Record the name of each file
// Need to sort these because accoring to msdn docs, our i/o methods are not guaranteed in any order
foreach (var file in ResolveArgs.FileSystemChildren.OrderBy(f => f.Name))
foreach (var file in ResolveArgs.FileSystemChildren
.Where(i => !i.Attributes.HasFlag(FileAttributes.System))
.OrderBy(f => f.Name))
{
sb.Append(file.Name);
}