HyunWooZZ opened a new issue, #46414: URL: https://github.com/apache/arrow/issues/46414
### Describe the bug, including details regarding any error messages, version, and platform. Describe the bug, including details regarding any error messages, version, and platform. Originate from this issue. https://github.com/apache/iceberg-python/issues/1952 Basically it hava to return origin info which is not found error, however that code return directory type. https://github.com/apache/arrow/blob/5240670813a2dac6386eb854f060384a3db946d1/cpp/src/arrow/filesystem/gcsfs.cc#L341 ```cpp std::string canonical = internal::EnsureTrailingSlash(path.object); auto list_result = client_.ListObjects(path.bucket, gcs::Prefix(canonical)); if (list_result.begin() != list_result.end()) { // If there is at least one result it indicates this is a directory (at // least one object exists that starts with "path/") return FileInfo(path.full_path, FileType::Directory); } ``` Steps to reproduce: I make the same logic to get the result:) Without any gc account setting. Run the below code. ```cpp #include "google/cloud/storage/client.h" #include <iostream> #include <stdexcept> namespace gcs = ::google::cloud::storage; int main(int argc, char* argv[]) { if (argc != 2) { std::cerr << "Usage: " << argv[0] << " <bucket-name>\n"; return 1; } std::string bucket_name = argv[1]; auto client = gcs::Client(); auto list_result = client.ListObjects(bucket_name); auto begin = list_result.begin(); auto end = list_result.end(); if (begin != end) { std::cout << "Objects found in bucket: " << bucket_name << "\n"; } else { std::cout << "No objects found in bucket: " << bucket_name << "\n"; } return 0; } ``` it printed "Objects found in bucket: some bucket." Component(s) C++ ### Component(s) C++ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org