Removed vf collection type

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-27 08:18:59 -04:00
parent 81c16c305b
commit 42a2835633
14 changed files with 117 additions and 177 deletions

View File

@@ -31,7 +31,7 @@ namespace MediaBrowser.Controller.Library
{
for (int i = 0; i < FileSystemChildren.Length; i++)
{
if (System.IO.Path.GetFileName(FileSystemChildren[i].Path).Equals(name, StringComparison.OrdinalIgnoreCase))
if (FileSystemChildren[i].cFileName.Equals(name, StringComparison.OrdinalIgnoreCase))
{
return true;
}
@@ -42,15 +42,7 @@ namespace MediaBrowser.Controller.Library
public bool ContainsFolder(string name)
{
for (int i = 0; i < FileSystemChildren.Length; i++)
{
if (System.IO.Path.GetFileName(FileSystemChildren[i].Path).Equals(name, StringComparison.OrdinalIgnoreCase))
{
return true;
}
}
return false;
return ContainsFile(name);
}
}
@@ -77,34 +69,6 @@ namespace MediaBrowser.Controller.Library
}
}
public VirtualFolder VirtualFolder
{
get
{
if (Parent != null)
{
return Parent.VirtualFolder;
}
return null;
}
}
public string VirtualFolderCollectionType
{
get
{
VirtualFolder vf = VirtualFolder;
if (vf == null)
{
return null;
}
return vf.CollectionType;
}
}
public bool IsHidden
{
get