Beispiel #1
0
 static public IEnumerable <string> GetDirectorysInDirectory(string directory)
 {
     return(Directory.GetDirectories(Filename.GetDirectory(directory), "*", SearchOption.TopDirectoryOnly)
            .Skip(s => s == "." || s == "..")
            .Convert(s => Filename.CleanPath(s + "/")));
 }
Beispiel #2
0
 static public string GetWorkingDirectory()
 {
     return(Filename.CleanPath(Directory.GetCurrentDirectory() + "/"));
 }
Beispiel #3
0
 static public IEnumerable <string> GetFilenamesInDirectory(string directory)
 {
     return(Directory.GetFiles(Filename.GetDirectory(directory), "*", SearchOption.TopDirectoryOnly)
            .Convert(s => Filename.CleanPath(s)));
 }