コード例 #1
0
 public static void Replace(Hierarchy hierarchy, string sourceFileName, string destinationFileName, string destinationBackupFileName)
 {
     throw new NotImplementedException("KSPe.IO.File.Replace");
 }
コード例 #2
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));
 }
コード例 #3
0
 public static void AppendAllText(Hierarchy hierarchy, string contents, string fn, params string[] fns)
 {
     throw new NotImplementedException("KSPe.IO.File.AppendAllText");
 }
コード例 #4
0
 public static void WriteAllLines(Hierarchy hierarchy, string[] contents, string fn, params string[] fns)
 {
     throw new NotImplementedException("KSPe.IO.File.WriteAllLines");
 }
コード例 #5
0
 public static void WriteAllText(Hierarchy hierarchy, string path, string contents)
 {
     throw new NotImplementedException("KSPe.IO.File.WriteAllText");
 }
コード例 #6
0
 public static string CalculateRelativePath(string fullDestinationPath)
 {
     return(Hierarchy.CalculateRelativePath(fullDestinationPath, Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)));            //FIXME: This only works when KSPe is on the GameData/ !!
 }
コード例 #7
0
 public static void SetLastWriteTimeUtc(Hierarchy hierarchy, DateTime lastWriteTimeUtc, string fn, params string[] fns)
 {
     throw new NotImplementedException("KSPe.IO.File.SetLastWriteTimeUtc");
 }
コード例 #8
0
 public static SIO.FileStream OpenWrite(Hierarchy hierarchy, string fn, params string[] fns)
 {
     throw new NotImplementedException("KSPe.IO.File.OpenWrite");
 }
コード例 #9
0
 public static byte[] ReadAllBytes(Hierarchy hierarchy, string path)
 {
     path = hierarchy.SolveFull(false, path);
     return(SIO.File.ReadAllBytes(path));
 }
コード例 #10
0
 public static SIO.FileStream OpenRead(Hierarchy hierarchy, string path)
 {
     throw new NotImplementedException("KSPe.IO.File.OpenRead");
 }
コード例 #11
0
 public static SIO.StreamReader OpenText(Hierarchy hierarchy, string fn, params string[] fns)
 {
     throw new NotImplementedException("KSPe.IO.File.OpenText");
 }
コード例 #12
0
 public static SIO.FileStream Open(Hierarchy hierarchy, SIO.FileMode mode, SIO.FileAccess access, SIO.FileShare share, string fn, params string[] fns)
 {
     throw new NotImplementedException("KSPe.IO.File.Open");
 }
コード例 #13
0
 public static SIO.FileStream Open(Hierarchy hierarchy, string path, SIO.FileMode mode, SIO.FileAccess access)
 {
     throw new NotImplementedException("KSPe.IO.File.Open");
 }
コード例 #14
0
 public static void Replace(Hierarchy hierarchy, string sourceFileName, Hierarchy destHierarchy, string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors)
 {
     throw new NotImplementedException("KSPe.IO.File.Replace");
 }
コード例 #15
0
 public static void SetCreationTime(Hierarchy hierarchy, DateTime creationTime, string fn, params string[] fns)
 {
     throw new NotImplementedException("KSPe.IO.File.SetCreationTime");
 }
コード例 #16
0
 public static string ReadAllText(Hierarchy hierarchy, string path)
 {
     path = hierarchy.SolveFull(false, path);
     return(SIO.File.ReadAllText(path));
 }
コード例 #17
0
 public static void SetLastAccessTime(Hierarchy hierarchy, string path, DateTime lastAccessTime)
 {
     throw new NotImplementedException("KSPe.IO.File.SetLastAccessTime");
 }
コード例 #18
0
        public static string ReadAllText(Hierarchy hierarchy, string fn, params string[] fns)
        {
            string path = hierarchy.SolveFull(false, fn, fns);

            return(SIO.File.ReadAllText(path));
        }
コード例 #19
0
 public static void SetLastWriteTimeUtc(Hierarchy hierarchy, string path, DateTime lastWriteTimeUtc)
 {
     throw new NotImplementedException("KSPe.IO.File.SetLastWriteTimeUtc");
 }
コード例 #20
0
 public static string ReadAllText(Hierarchy hierarchy, string path, System.Text.Encoding encoding)
 {
     path = hierarchy.SolveFull(false, path);
     return(SIO.File.ReadAllText(path, encoding));
 }
コード例 #21
0
 public static void WriteAllBytes(Hierarchy hierarchy, string path, byte[] bytes)
 {
     throw new NotImplementedException("KSPe.IO.File.WriteAllBytes");
 }
コード例 #22
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));
        }
コード例 #23
0
 public static void WriteAllLines(Hierarchy hierarchy, string path, string[] contents, System.Text.Encoding encoding)
 {
     throw new NotImplementedException("KSPe.IO.File.WriteAllLines");
 }
コード例 #24
0
 public static void SetAccessControl(Hierarchy hierarchy, System.Security.AccessControl.FileSecurity fileSecurity, string fn, params string[] fns)
 {
     throw new NotImplementedException("KSPe.IO.File.SetAttributes");
 }
コード例 #25
0
 public static void WriteAllText(Hierarchy hierarchy, string contents, System.Text.Encoding encoding, string fn, params string[] fns)
 {
     throw new NotImplementedException("KSPe.IO.File.WriteAllText");
 }
コード例 #26
0
 public static void SetAttributes(Hierarchy hierarchy, string path, SIO.FileAttributes fileAttributes)
 {
     throw new NotImplementedException("KSPe.IO.File.SetAttributes");
 }
コード例 #27
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));
 }
コード例 #28
0
 public static void SetAttributes(Hierarchy hierarchy, SIO.FileAttributes fileAttributes, string fn, params string[] fns)
 {
     throw new NotImplementedException("KSPe.IO.File.SetAttributes");
 }
コード例 #29
0
 public static void AppendAllText(Hierarchy hierarchy, string path, string contents, System.Text.Encoding encoding)
 {
     throw new NotImplementedException("KSPe.IO.File.AppendAllText");
 }
コード例 #30
0
 public static void Movel(Hierarchy sourceHierarchy, string sourceFileName, Hierarchy destHierarchy, string destFileName)
 {
     throw new NotImplementedException("KSPe.IO.File.Move");
 }