예제 #1
0
 public string ReadAllText(NPath path)
 {
     return(fileSystem.ReadAllText(path.ToProcessDirectory().ToString()));
 }
예제 #2
0
 public byte[] ReadAllBytes(NPath path)
 {
     return(fileSystem.ReadAllBytes(path.ToProcessDirectory().ToString()));
 }
예제 #3
0
 public string[] ReadAllLines(NPath path)
 {
     return(fileSystem.ReadAllLines(path.ToProcessDirectory().ToString()));
 }
예제 #4
0
 public Stream OpenRead(NPath path)
 {
     return(fileSystem.OpenRead(path.ToProcessDirectory().ToString()));
 }
예제 #5
0
 public Stream OpenWrite(NPath path, FileMode mode)
 {
     return(fileSystem.OpenWrite(path.ToProcessDirectory().ToString(), mode));
 }
예제 #6
0
 public void WriteAllText(NPath path, string contents, Encoding encoding)
 {
     fileSystem.WriteAllText(path.ToProcessDirectory().ToString(), contents, encoding);
 }
예제 #7
0
 public void DirectoryCreate(NPath path)
 {
     fileSystem.DirectoryCreate(path.ToProcessDirectory().ToString());
 }
예제 #8
0
 public void FileMove(NPath from, NPath to)
 {
     fileSystem.FileMove(from.ToProcessDirectory().ToString(), to.ToProcessDirectory().ToString());
 }
예제 #9
0
 public IEnumerable <string> GetDirectories(NPath path, string pattern)
 {
     return(fileSystem.GetDirectories(path.ToProcessDirectory().ToString(), pattern));
 }
예제 #10
0
 public void FileDelete(NPath path)
 {
     fileSystem.FileDelete(path.ToProcessDirectory().ToString());
 }
예제 #11
0
 public bool FileExists(NPath path)
 {
     return(fileSystem.FileExists(path.ToProcessDirectory().ToString()));
 }
예제 #12
0
 public void FileCopy(NPath from, NPath to, bool overwrite)
 {
     fileSystem.FileCopy(from.ToProcessDirectory().ToString(), to.ToProcessDirectory().ToString(), overwrite);
 }
예제 #13
0
 public bool ExistingPathIsDirectory(NPath path)
 {
     return(fileSystem.ExistingPathIsDirectory(path.ToProcessDirectory().ToString()));
 }
예제 #14
0
 public void DirectoryDelete(NPath path, bool recursive)
 {
     fileSystem.DirectoryDelete(path.ToProcessDirectory().ToString(), recursive);
 }
예제 #15
0
 public string ReadAllText(NPath path, Encoding encoding)
 {
     return(fileSystem.ReadAllText(path.ToProcessDirectory().ToString(), encoding));
 }
예제 #16
0
 public IEnumerable <string> GetFiles(NPath path)
 {
     return(fileSystem.GetFiles(path.ToProcessDirectory().ToString()));
 }
예제 #17
0
 public void WriteAllBytes(NPath path, byte[] bytes)
 {
     fileSystem.WriteAllBytes(path.ToProcessDirectory().ToString(), bytes);
 }
예제 #18
0
 public IEnumerable <string> GetFiles(NPath path, string pattern, SearchOption searchOption)
 {
     return(fileSystem.GetFiles(path.ToProcessDirectory().ToString(), pattern, searchOption));
 }
예제 #19
0
 public void WriteLines(NPath path, string[] contents)
 {
     fileSystem.WriteLines(path.ToProcessDirectory().ToString(), contents);
 }
예제 #20
0
 public static string CalculateMD5(this NPath path)
 {
     return(NPath.FileSystem.CalculateFileMD5(path.ToProcessDirectory()));
 }