fixes #200 - MB3 Locking Folders for a long time

This commit is contained in:
Luke Pulverenti
2013-04-28 01:29:27 -04:00
parent 90bb3d46c4
commit b443d591a2
33 changed files with 254 additions and 405 deletions

View File

@@ -394,9 +394,9 @@ namespace MediaBrowser.Server.Implementations.IO
{
try
{
var data = FileSystem.GetFileData(path);
var data = FileSystem.GetFileSystemInfo(path);
if (!data.HasValue || data.Value.IsDirectory)
if (!data.Exists || data.Attributes.HasFlag(FileAttributes.Directory))
{
return false;
}