mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 02:12:21 +00:00
shorten
This commit is contained in:
parent
e851be78bc
commit
c0f9dbbacb
@ -122,7 +122,7 @@ void listFilesWithFoldedRegexpMatchingImpl(const std::string & path_for_ls,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
const fs::directory_iterator end;
|
const fs::directory_iterator end;
|
||||||
for (fs::directory_iterator it(path_for_ls, std::filesystem::directory_options::skip_permission_denied); it != end; ++it)
|
for (fs::directory_iterator it(path_for_ls, fs::directory_options::skip_permission_denied); it != end; ++it)
|
||||||
{
|
{
|
||||||
const std::string full_path = it->path().string();
|
const std::string full_path = it->path().string();
|
||||||
const size_t last_slash = full_path.rfind('/');
|
const size_t last_slash = full_path.rfind('/');
|
||||||
|
Loading…
Reference in New Issue
Block a user