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

Method DeleteDirContentsAsync

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

Source from the content-addressed store, hash-verified

2955 }
2956
2957 Future<> DeleteDirContentsAsync(const std::string& bucket, const std::string& key) {
2958 auto self = shared_from_this();
2959 return EnsureIsDirAsync(bucket, key)
2960 .Then([self, bucket, key](bool is_dir) -> Future<> {
2961 if (!is_dir) {
2962 return Status::IOError("Cannot delete directory contents at ", bucket, kSep,
2963 key, " because it is a file");
2964 }
2965 return self->DoDeleteDirContentsAsync(bucket, key);
2966 });
2967 }
2968
2969 FileInfoGenerator GetFileInfoGenerator(const FileSelector& select) {
2970 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