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