Ejemplo n.º 1
0
        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.
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
 public static string ReadAllText(Hierarchy hierarchy, string path, System.Text.Encoding encoding)
 {
     path = hierarchy.SolveFull(false, path);
     return(SIO.File.ReadAllText(path, encoding));
 }
Ejemplo n.º 4
0
        public static string ReadAllText(Hierarchy hierarchy, string fn, params string[] fns)
        {
            string path = hierarchy.SolveFull(false, fn, fns);

            return(SIO.File.ReadAllText(path));
        }
Ejemplo n.º 5
0
 public static string ReadAllText(Hierarchy hierarchy, string path)
 {
     path = hierarchy.SolveFull(false, path);
     return(SIO.File.ReadAllText(path));
 }
Ejemplo n.º 6
0
 public static byte[] ReadAllBytes(Hierarchy hierarchy, string path)
 {
     path = hierarchy.SolveFull(false, path);
     return(SIO.File.ReadAllBytes(path));
 }
Ejemplo n.º 7
0
 public static DateTime GetLastWriteTimeUtc(Hierarchy hierarchy, string path)
 {
     path = hierarchy.SolveFull(false, path);
     return(SIO.File.GetLastWriteTimeUtc(path));
 }
Ejemplo n.º 8
0
 public static void Delete(Hierarchy hierarchy, string path)
 {
     path = hierarchy.SolveFull(false, path);
     SIO.File.Delete(path);
 }
Ejemplo n.º 9
0
 public static SIO.FileAttributes GetAttributes(Hierarchy hierarchy, string path)
 {
     path = hierarchy.SolveFull(false, path);
     return(SIO.File.GetAttributes(path));
 }
Ejemplo n.º 10
0
 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));
 }
Ejemplo n.º 11
0
        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));
        }
Ejemplo n.º 12
0
        public static bool Exists(Hierarchy hierarchy, string fn, params string[] fns)
        {
            string path = hierarchy.SolveFull(false, fn, fns);

            return(SIO.File.Exists(path));
        }
Ejemplo n.º 13
0
 public static bool Exists(Hierarchy hierarchy, string path)
 {
     path = hierarchy.SolveFull(false, path);
     return(SIO.File.Exists(path));
 }
Ejemplo n.º 14
0
        public static void Delete(Hierarchy hierarchy, string fn, params string[] fns)
        {
            string path = hierarchy.SolveFull(false, fn, fns);

            SIO.File.Delete(path);
        }
Ejemplo n.º 15
0
 public static string[] List(Hierarchy hierarchy, string mask = "*", bool include_subdirs = false, string subdir = null)
 {
     return(List(hierarchy.SolveFull(false, subdir ?? "."), mask, include_subdirs));
 }
Ejemplo n.º 16
0
 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));
 }
Ejemplo n.º 17
0
 public static DateTime GetCreationTime(Hierarchy hierarchy, string path)
 {
     path = hierarchy.SolveFull(false, path);
     return(SIO.File.GetCreationTime(path));
 }