You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "felipecrv (via GitHub)" <gi...@apache.org> on 2023/11/21 01:14:57 UTC
Re: [I] [C++][FS][Azure] Should `GetFileInfo()` against a directory always return true without hierarchical namespace support? [arrow]
felipecrv commented on issue #38772:
URL: https://github.com/apache/arrow/issues/38772#issuecomment-1820058342
I thought a bit more about this idea and realized always returning `OK()` on "directory exists?" queries would contradict the post-condition of `DeleteDir()` – after `DeleteDir()` the caller expects `DirectoryExists()` to return `false`.
I think our approach of doing nothing on `CreateDir` has to be reconsidered. `s3fs.cc` creates an empty object with a path ending in `/` to indicate a directory was created:
```cpp
Status CreateEmptyDir(const std::string& bucket, const std::string& key) {
DCHECK(!key.empty());
return CreateEmptyObject(bucket, key + kSep);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org