-
Notifications
You must be signed in to change notification settings - Fork 487
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
[fix]curvefs/client: fix check filetype #2729
[fix]curvefs/client: fix check filetype #2729
Conversation
b3e0d55
to
4261190
Compare
de05e45
to
3125a7a
Compare
if (strncmp(ent->d_name, ".", 1) == 0 || | ||
strncmp(ent->d_name, "..", 2) == 0) { | ||
continue; | ||
} else if (ent->d_type == 8) { | ||
} else if (stat(fmt::format("{}/{}", path, ent->d_name).c_str(), |
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.
You can use a function to do it:
bool IsFile(const std::string& path) {
// do something
}
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.
You can use a function to do it:
bool IsFile(const std::string& path) { // do something }
done
6ec6e30
to
b9459d5
Compare
cicheck |
cicheck |
11 similar comments
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
b9459d5
to
937af04
Compare
cicheck |
7 similar comments
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
9eb7208
to
2c4ba31
Compare
Signed-off-by: Cyber-SiKu <Cyber-SiKu@outlook.com>
2c4ba31
to
3efb66b
Compare
cicheck |
25 similar comments
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
What problem does this PR solve?
Issue Number: #xxx
Problem Summary:
What is changed and how it works?
What's Changed:
How it Works:
test.cpp:
output:
Side effects(Breaking backward compatibility? Performance regression?):
Check List