diff --git a/be/src/io/fs/local_file_system.cpp b/be/src/io/fs/local_file_system.cpp index 131c7d99b38cec..4bebfe0358f9f5 100644 --- a/be/src/io/fs/local_file_system.cpp +++ b/be/src/io/fs/local_file_system.cpp @@ -219,7 +219,7 @@ Status LocalFileSystem::directory_size(const Path& dir_path, size_t* dir_size) { Status LocalFileSystem::list_impl(const Path& dir, bool only_file, std::vector* files, bool* exists) { RETURN_IF_ERROR(exists_impl(dir, exists)); - if (!exists) { + if (!(*exists)) { return Status::OK(); } std::error_code ec;