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

File owner/group API in new std::fs module #23892

Closed
jnicholls opened this issue Mar 31, 2015 · 2 comments
Closed

File owner/group API in new std::fs module #23892

jnicholls opened this issue Mar 31, 2015 · 2 comments

Comments

@jnicholls
Copy link

It appears as though the new std::fs module did not port over the abstraction of setting Ownership, like it did with setting Permissions. std::old_io::fs::chown is the only way to do this right now, particularly on a unix system.

Are we expected to FFI this ourselves at 1.0 beta/stable?

@alexcrichton
Copy link
Member

Thanks for the issue! This is currently covered by rust-lang/rfcs#939 which is tracking a comprehensive look at the std::fs module to see how best to expand it in the future. Currently, yes, you'll need to call chown manually as we're not exporting a stable function for it.

@jnicholls
Copy link
Author

Awesome, thanks for the link to the RFC (I need to get habitual about checking that first :)

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

No branches or pull requests

2 participants