Ejemplo n.º 1
0
 /// <summary>
 /// Returns a list of all directories matching the provided search term.</summary>
 public IEnumerable <FileDirectoryViewModel> FindDirectories(string searchTerm)
 {
     return(Archives.SelectMany(x => x.FindDirectories(searchTerm)));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns an enumerable collection of file names that match a search pattern in a specified path.
 /// </summary>
 /// <param name="searchPattern">The regular expression to match against the names of directories in path.</param>
 /// <returns>An enumerable collection of the full names (including paths) for the files in the directory specified by <paramref name="path"/> and that match the specified search pattern.</returns>
 /// <remarks>The order in which files are returned is unspecified (unordered).</remarks>
 public IEnumerable <RiotArchiveFile> GetFiles(string searchPattern)
 {
     return(Archives.SelectMany(a => a.GetFiles(searchPattern)));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Returns a list of all file nodes matching the provided search term.</summary>
 public IEnumerable <FileNodeViewModel> FindFileNodes(string searchTerm)
 {
     return(Archives.SelectMany(x => x.FindFileNodes(searchTerm)));
 }