MCPcopy Create free account
hub / github.com/apache/arrow / DeleteDirContentsAsync

Method DeleteDirContentsAsync

cpp/src/arrow/filesystem/s3fs.cc:2896–2906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2894 }
2895
2896 Future<> DeleteDirContentsAsync(const std::string& bucket, const std::string& key) {
2897 auto self = shared_from_this();
2898 return EnsureIsDirAsync(bucket, key)
2899 .Then([self, bucket, key](bool is_dir) -> Future<> {
2900 if (!is_dir) {
2901 return Status::IOError("Cannot delete directory contents at ", bucket, kSep,
2902 key, " because it is a file");
2903 }
2904 return self->DoDeleteDirContentsAsync(bucket, key);
2905 });
2906 }
2907
2908 FileInfoGenerator GetFileInfoGenerator(const FileSelector& select) {
2909 auto maybe_base_path = S3Path::FromString(select.base_dir);

Callers

nothing calls this directly

Calls 3

IOErrorFunction · 0.85
ThenMethod · 0.80

Tested by

no test coverage detected