Update fs.rs

This commit is contained in:
Jeremy Soller
2017-07-12 20:40:43 -06:00
committed by GitHub
parent f85579d4a2
commit 362dd8a986

View File

@@ -384,8 +384,9 @@ pub fn unlink(p: &Path) -> io::Result<()> {
}
pub fn rename(_old: &Path, _new: &Path) -> io::Result<()> {
::sys_common::util::dumb_print(format_args!("Rename\n"));
unimplemented!();
copy(old, new)?;
unlink(old)?;
Ok(())
}
pub fn set_perm(p: &Path, perm: FilePermissions) -> io::Result<()> {