예제 #1
0
 public NPath WriteAllBytes(byte[] contents)
 {
     ThrowIfNotInitialized();
     EnsureParentDirectoryExists();
     FSWrapper.WriteAllBytes(this, contents);
     return(this);
 }
예제 #2
0
 public NPath CreateFile()
 {
     ThrowIfNotInitialized();
     ThrowIfRelative();
     ThrowIfRoot();
     EnsureParentDirectoryExists();
     FSWrapper.WriteAllBytes(this, new byte[0]);
     return(this);
 }