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