Added some promise based file system methods.