Skip to content

Commit

Permalink
Modify to use the explicit prefixes on file handling in S3FileSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisiou committed Nov 3, 2023
1 parent 12e9095 commit b959f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/httpfs/s3fs.cpp
Expand Up @@ -830,7 +830,7 @@ void S3FileHandle::Initialize(FileOpener *opener) {
}

bool S3FileSystem::CanHandleFile(const string &fpath) {
return this->IsRemoteFile(fpath);
return fpath.rfind("s3://", 0) * fpath.rfind("gcs://", 0) * fpath.rfind("r2://", 0) == 0;
}

void S3FileSystem::FileSync(FileHandle &handle) {
Expand Down

0 comments on commit b959f7a

Please sign in to comment.