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

            SIO.File.Delete(path);
        }
예제 #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));
 }
예제 #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));
 }
예제 #17
0
 public static DateTime GetCreationTime(Hierarchy hierarchy, string path)
 {
     path = hierarchy.SolveFull(false, path);
     return(SIO.File.GetCreationTime(path));
 }