title: What file manipulation commands work across all operating systems?
body: <p>I'm making a python script that will perform various file manipulation functions. I need it to work across all operating systems so the commands I use can't be specific to any one operating system. I can't used any os commands, and can't use any system() calls. Is there any replacement for the following commands?</p>
  
  <p>os.mknod() - create a file</p>
  
  <p>os.remove() - delete a file</p>
  
  <p>os.rename() - rename a file</p>
  
  <p>os.listdir() - list directory</p>
  
  <p>In addition, does shutil work across all operating systems? I have a function to move a file from one directory to another using shutil.move() but unsure if this can work on OSX and Windows (I have a linux computer). I looked at the shutil documentation but it doesn't mention anything about working on any operating system.</p>
  
  <p>Thanks!</p>