예제 #1
0
 /// <summary>
 /// Initializes a new instance of the FileSystemContext class.
 /// </summary>
 /// <param name="root">Root folder of the media library.</param>
 public MediaContext(string root)
 {
     this.root = new Folder()
     {
         Name = Path.GetDirectoryName(root),
         Path = root
     };
 }
예제 #2
0
 private async Task<Folder> ParseNodesAsync(Folder root, IEnumerable<FileSystemInfo> infos)
 {
     var nodes = await Task<List<FileSystemInfo>>.Run(() => infos.ToList());
     return root;
 }
예제 #3
0
파일: Folder.cs 프로젝트: frozenesper/mad
 public bool Equals(Folder o)
 {
     return o != null &&
            base.Equals((Node)o) &&
            this.Items.SequenceEqual(o.Items);
 }