Skip to content

Conversation

puneet
Copy link

@puneet puneet commented Jan 6, 2014

As suggested by Andrej, mkdirRecurse reports an error (on posix systems)
if the directory already exists. I have patched rdmd.d with an
additional check to make sure that the directory does not already exist,
before calling mkdirRecurse.

I have tested this fix on my Ubuntu box and it works.

As suggested by Andrej, mkdirRecurse reports an error (on posix systems)
if the directory already exists. I have patched rdmd.d with an
additional check to make sure that the directory does not already exist,
before calling mkdirRecurse.
@puneet
Copy link
Author

puneet commented Jan 6, 2014

Another possibility is to fix the mkdirRecurse method in std.file module. That way we could make sure that both posix and non-posix systems have the same behavior in D.

@MartinNowak
Copy link
Member

There already is dlang/phobos#1818, and checking exists before doing mkdirRecurse has a rae condition.

@MartinNowak MartinNowak closed this Jan 6, 2014
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