Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fs::copy and fs::rename #574

Merged
merged 1 commit into from Mar 22, 2016
Merged

Add fs::copy and fs::rename #574

merged 1 commit into from Mar 22, 2016

Conversation

wbrbr
Copy link

@wbrbr wbrbr commented Mar 22, 2016

I added the copy and rename functions to the fs module. See #572

io::copy(&mut infile, &mut outfile)
}

pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> Result<()> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not how rename should work.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, we need a sys_rename, but it is ok for now

jackpot51 added a commit that referenced this pull request Mar 22, 2016
@jackpot51 jackpot51 merged commit 46ff17a into redox-os:master Mar 22, 2016
@jackpot51
Copy link
Member

I will start working on sys_rename

@jackpot51
Copy link
Member

Somebody should update mv to use fs::rename

@ticki
Copy link
Contributor

ticki commented Mar 22, 2016

Somebody should update mv to use fs::rename

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants