public static SIO.StreamWriter CreateText(Hierarchy hierarchy, string fn, params string[] fns) { string path = hierarchy.SolveFull(true, fn, fns); var t = SIO.File.CreateText(path); // Does the magic t.Close(); // TODO: Get rid of this stunt. return(new SIO.StreamWriter(path)); // Reopens the stream as our own type. }
public static string ReadAllText(Hierarchy hierarchy, System.Text.Encoding encoding, string fn, params string[] fns) { string path = hierarchy.SolveFull(false, fn, fns); return(SIO.File.ReadAllText(path, encoding)); }
public static string ReadAllText(Hierarchy hierarchy, string path, System.Text.Encoding encoding) { path = hierarchy.SolveFull(false, path); return(SIO.File.ReadAllText(path, encoding)); }
public static string ReadAllText(Hierarchy hierarchy, string fn, params string[] fns) { string path = hierarchy.SolveFull(false, fn, fns); return(SIO.File.ReadAllText(path)); }
public static string ReadAllText(Hierarchy hierarchy, string path) { path = hierarchy.SolveFull(false, path); return(SIO.File.ReadAllText(path)); }
public static byte[] ReadAllBytes(Hierarchy hierarchy, string path) { path = hierarchy.SolveFull(false, path); return(SIO.File.ReadAllBytes(path)); }
public static DateTime GetLastWriteTimeUtc(Hierarchy hierarchy, string path) { path = hierarchy.SolveFull(false, path); return(SIO.File.GetLastWriteTimeUtc(path)); }
public static void Delete(Hierarchy hierarchy, string path) { path = hierarchy.SolveFull(false, path); SIO.File.Delete(path); }
public static SIO.FileAttributes GetAttributes(Hierarchy hierarchy, string path) { path = hierarchy.SolveFull(false, path); return(SIO.File.GetAttributes(path)); }
public static System.Security.AccessControl.FileSecurity GetAccessControl(Hierarchy hierarchy, string path, System.Security.AccessControl.AccessControlSections includeSections) { path = hierarchy.SolveFull(false, path); return(SIO.File.GetAccessControl(path, includeSections)); }
public static System.Security.AccessControl.FileSecurity GetAccessControl(Hierarchy hierarchy, string fn, params string[] fns) { string path = hierarchy.SolveFull(false, fn, fns); return(SIO.File.GetAccessControl(path)); }
public static bool Exists(Hierarchy hierarchy, string fn, params string[] fns) { string path = hierarchy.SolveFull(false, fn, fns); return(SIO.File.Exists(path)); }
public static bool Exists(Hierarchy hierarchy, string path) { path = hierarchy.SolveFull(false, path); return(SIO.File.Exists(path)); }
public static void Delete(Hierarchy hierarchy, string fn, params string[] fns) { string path = hierarchy.SolveFull(false, fn, fns); SIO.File.Delete(path); }
public static string[] List(Hierarchy hierarchy, string mask = "*", bool include_subdirs = false, string subdir = null) { return(List(hierarchy.SolveFull(false, subdir ?? "."), mask, include_subdirs)); }
public static string[] List(Hierarchy hierarchy, string mask = "*", bool include_subdirs = false, string fn = null, params string[] fns) { return(List(hierarchy.SolveFull(false, fn ?? ".", fns), mask, include_subdirs)); }
public static DateTime GetCreationTime(Hierarchy hierarchy, string path) { path = hierarchy.SolveFull(false, path); return(SIO.File.GetCreationTime(path)); }