cd :: FileSystem -> Path -> IO ()
cd (FileSystem fs) p =
  withCString p $ \path ->
    throwErrnoIfMinus1_ "cd" $ c_hdfs_set_working_directory fs path
cd :: FileSystem -> Path -> IO ()
cd (FileSystem fs) p =
  withCString p $ \path ->
    throwErrnoIfMinus1_ "cd" $ c_hdfs_set_working_directory fs path
cd (FileSystem fs) p =
  withCString p $ \path ->
    throwErrnoIfMinus1_ "cd" $ c_hdfs_set_working_directory fs path