Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
acquamarin committed Aug 28, 2024
1 parent f75fe05 commit efa9e04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extension/httpfs/src/httpfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ bool HTTPFileSystem::fileOrPathExists(const std::string& path, main::ClientConte
try {
auto fileInfo = openFile(path, FileFlags::READ_ONLY, context, FileLockType::READ_LOCK);
auto httpFileInfo = fileInfo->constPtrCast<HTTPFileInfo>();
if (httpFileInfo->cachedFileInfo != nullptr) {
return true;
}
if (httpFileInfo->length == 0) {
return false;
}
Expand Down

0 comments on commit efa9e04

Please sign in to comment.