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