diff --git a/extension/httpfs/s3fs.cpp b/extension/httpfs/s3fs.cpp index 3b858ed7722..fcb4785c7ca 100644 --- a/extension/httpfs/s3fs.cpp +++ b/extension/httpfs/s3fs.cpp @@ -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) {