mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
style
This commit is contained in:
parent
be9a17f2cc
commit
e16cb83ca3
@ -366,14 +366,17 @@ Strings StorageFile::getPathsList(const String & table_path, const String & user
|
||||
}
|
||||
else if (path.find_first_of("*?{") == std::string::npos)
|
||||
{
|
||||
if (!fs::is_directory(path)) {
|
||||
if (!fs::is_directory(path))
|
||||
{
|
||||
std::error_code error;
|
||||
size_t size = fs::file_size(path, error);
|
||||
if (!error)
|
||||
total_bytes_to_read += size;
|
||||
|
||||
paths.push_back(path);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
/// We list non-directory files under that directory.
|
||||
paths = listFilesWithRegexpMatching(path / fs::path("*"), total_bytes_to_read);
|
||||
can_be_directory = false;
|
||||
|
Loading…
Reference in New Issue
Block a user