file writing methods

client needs to be aware that they’re reading/writing a file or
directory