static public IEnumerable <string> GetFilenamesInDirectory(string directory) { return(Directory.GetFiles(Filename.GetDirectory(directory), "*", SearchOption.TopDirectoryOnly) .Convert(s => Filename.CleanPath(s))); }
static public IEnumerable <string> GetDirectorysInDirectory(string directory) { return(Directory.GetDirectories(Filename.GetDirectory(directory), "*", SearchOption.TopDirectoryOnly) .Skip(s => s == "." || s == "..") .Convert(s => Filename.CleanPath(s + "/"))); }
static public string GetAssemblyDirectory(this Assembly item) { return(Filename.GetDirectory(item.GetAssemblyFilename())); }