Skip to content

Commit 7fb554c

Browse files
committed
Apply suggestion
1 parent 146847d commit 7fb554c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/src/arrow/filesystem/s3fs.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ bool IsDirectory(std::string_view key, const S3Model::HeadObjectResult& result)
12211221
return false;
12221222
}
12231223
// Otherwise, if it has a trailing slash, it's a directory
1224-
if (key[key.size() - 1] == kSep) {
1224+
if (internal::HasTrailingSlash(key)) {
12251225
return true;
12261226
}
12271227
// Otherwise, if its content type starts with "application/x-directory",

0 commit comments

Comments
 (0)