mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-02-02 18:48:26 +00:00
Loosen CheckBucket to check only the bucket (#1728)
Previously it checked if there was an object present, assuming that this was a directory object normally created for s3fs directories. However most S3 clients do not create this object for virtual folders. Fixes #1460. Fixes #1687.
This commit is contained in:
parent
77f0b75d2f
commit
d3278f4886
@ -3397,11 +3397,11 @@ int S3fsCurl::CheckBucket()
|
|||||||
}
|
}
|
||||||
std::string resource;
|
std::string resource;
|
||||||
std::string turl;
|
std::string turl;
|
||||||
MakeUrlResource(get_realpath("/").c_str(), resource, turl);
|
MakeUrlResource("/", resource, turl);
|
||||||
|
|
||||||
turl += urlargs;
|
turl += urlargs;
|
||||||
url = prepare_url(turl.c_str());
|
url = prepare_url(turl.c_str());
|
||||||
path = get_realpath("/");
|
path = "/"; // Only check the presence of the bucket, not the entire virtual path.
|
||||||
requestHeaders = NULL;
|
requestHeaders = NULL;
|
||||||
responseHeaders.clear();
|
responseHeaders.clear();
|
||||||
bodydata.Clear();
|
bodydata.Clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user