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

feat: implement visitFileFailed for mkvisitor #598

Closed
wants to merge 1 commit into from

Conversation

thenonameguy
Copy link

@thenonameguy thenonameguy commented Mar 9, 2017

Reason:
This project does a treewalk on our project structure, which contains folders/files that cannot be opened by the boot process, this causes the process to exit.
This PR fixes this issue by ignoring these files/directories.

@arichiardi
Copy link
Contributor

Looks good

(visitFileFailed [^Path path ^java.io.IOException e]
(with-let [_ fs/skip-subtree]
(let [p (str (.relativize root path))]
(util/dbug* "Tmpdir: failed to visit: %s\n" (.toString p))))))))
Copy link
Member

Choose a reason for hiding this comment

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

A minor thing: Now that .relativize call is outside of the dbug* macro call, it is evaluated always. If it was inside the macro call, if would be evaluated only when dbug output is enabled.

Also, it is unnecessary to have both str and .toString calls.

@alandipert
Copy link
Contributor

This looks good. @thenonameguy when you have a chance, in addition to the changes @Deraen mentioned, could you please also add to CHANGES.md?

Thanks!

@martinklepsch
Copy link
Member

closing in favor of #629

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

Successfully merging this pull request may close these issues.

None yet

5 participants