pitrou commented on a change in pull request #11842:
URL: https://github.com/apache/arrow/pull/11842#discussion_r764236030
##########
File path: cpp/src/arrow/filesystem/gcsfs.cc
##########
@@ -332,12 +385,15 @@ class GcsFileSystem::Impl {
static Result<FileInfo> GetFileInfoImpl(const GcsPath& path,
const google::cloud::Status& status,
FileType type) {
+ const auto& canonical = type == FileType::Directory
+ ? internal::EnsureTrailingSlash(path.full_path)
+ : path.full_path;
Review comment:
Ha, thanks. I always get confused by this.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]