-
Notifications
You must be signed in to change notification settings - Fork 6
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
crnlib: correct alternate code to test if a path is a directory #64
Conversation
The alternate code was testing for the file name in the current directory.
1961276
to
ac13061
Compare
ac13061
to
1d4cbb3
Compare
ea9ba2b
to
d2e90f9
Compare
d2e90f9
to
8118010
Compare
One may open the folder with |
Also an alternate code to use
So this may be the fastest code. |
8118010
to
6927e86
Compare
6927e86
to
62b5939
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
crnlib/crn_find_files.cpp
Outdated
bool is_file = 0; | ||
bool is_directory = false; | ||
bool is_file = false; | ||
bool guessed = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would call it known
. The word "guess" implies you are making the answer and don't know it it's correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK Done.
62b5939
to
571aa58
Compare
The alternate code was testing for the file name in the current directory.
Fixes #63: