Update s3_file_system.cc
This commit is contained in:
parent
f8e0deac4d
commit
ec25c31a92
@ -400,7 +400,7 @@ Status S3FileSystem::GetChildren(const string& dir,
|
||||
string bucket, prefix;
|
||||
TF_RETURN_IF_ERROR(ParseS3Path(dir, true, &bucket, &prefix));
|
||||
|
||||
if (prefix.empty() || prefix.back() != '/') {
|
||||
if (!prefix.empty() && prefix.back() != '/') {
|
||||
prefix.push_back('/');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user