add new file method overloads

This commit is contained in:
Luke Pulverenti
2017-03-30 13:56:32 -04:00
parent db75d02f9c
commit 7987e64d38
5 changed files with 44 additions and 10 deletions
@@ -1255,9 +1255,9 @@ namespace Emby.Server.Implementations.Library
private string GetCollectionType(string path)
{
return _fileSystem.GetFiles(path, new[] { ".collection" }, true, false)
return _fileSystem.GetFilePaths(path, new[] { ".collection" }, true, false)
.Select(i => _fileSystem.GetFileNameWithoutExtension(i))
.FirstOrDefault();
.FirstOrDefault(i => !string.IsNullOrWhiteSpace(i));
}
/// <summary>