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