Esempio n. 1
0
 /// <summary>
 /// Read all directories.
 /// </summary>
 /// <param name="path">Path of directory.</param>
 public static MochaReader <MochaDirectory> ReadDirectories(this MochaFileSystem fs, MochaPath path) =>
 new MochaReader <MochaDirectory>(fs.GetDirectories(path));
Esempio n. 2
0
 /// <summary>
 /// Read all directories.
 /// </summary>
 /// <param name="fs">Target filesystem.</param>
 /// <param name="path">Path of directory.</param>
 /// <param name="query">Query for filtering.</param>
 public static MochaReader <MochaDirectory> ReadDirectories(this MochaFileSystem fs, MochaPath path, Func <MochaDirectory, bool> query) =>
 new MochaReader <MochaDirectory>(fs.GetDirectories(path).Where(query));
Esempio n. 3
0
 /// <summary>
 /// Returns all directories.
 /// </summary>
 /// <param name="fs">Target filesystem.</param>
 /// <param name="path">Path of directory.</param>
 /// <param name="query">Query for filtering.</param>
 public static MochaCollectionResult <MochaDirectory> GetDirectories(this MochaFileSystem fs, MochaPath path, Func <MochaDirectory, bool> query) =>
 new MochaCollectionResult <MochaDirectory>(fs.GetDirectories(path).Where(query));