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

Move to new io/path/fs/net API #13

Merged
merged 1 commit into from
Mar 8, 2015
Merged

Move to new io/path/fs/net API #13

merged 1 commit into from
Mar 8, 2015

Conversation

panicbit
Copy link
Contributor

@panicbit panicbit commented Mar 6, 2015

No description provided.

@panicbit
Copy link
Contributor Author

panicbit commented Mar 6, 2015

Building with latest rustc (2015-03-06) is blocked by rust-lang/rust#22432
However, building and testing with 2015-03-04 worked.

@panicbit panicbit closed this Mar 7, 2015
@panicbit panicbit reopened this Mar 7, 2015
if self.exists() {
fs::rmdir_recursive(self)
fs::remove_dir_all(self)
Copy link
Member

Choose a reason for hiding this comment

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

Should there be locking for this operation as well? Can concurrent mkdir_recursive and this cause issues?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

While it doesn't matter for the tests from iron/static (they only remove their very own directy) I think we should look rm as well. Just in case.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds like a plan. Make the change and I'll give a final pass (everything else LGTM though).

Update tests

Remove fs feature attribute

Add path_ext feature attribute

Add mutex for mkdir op

Calling fs::create_dir_all concurrently in tests
can lead to race conditions

Synchronize rm operations as well
reem added a commit that referenced this pull request Mar 8, 2015
Move to new io/path/fs/net API
@reem reem merged commit 20b4d55 into iron:master Mar 8, 2015
@panicbit panicbit deleted the new-apis branch March 8, 2015 01:59
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

Successfully merging this pull request may close these issues.

2 participants