MCPcopy Create free account
hub / github.com/ByConity/ByConity / createDirectories

Method createDirectories

src/Storages/HDFS/HDFSFileSystem.cpp:626–634  ·  view source on GitHub ↗

Creates a directory(and all parent directories if necessary).

Source from the content-addressed store, hash-verified

624
625/// Creates a directory(and all parent directories if necessary).
626bool HDFSFileSystem::createDirectories(const std::string& path) const
627{
628 HDFSFSPtr fs_copy = getFS();
629 String normalized_path = normalizePath(path);
630 int ret = hdfsCreateDirectoryEx(fs_copy.get(), normalized_path.c_str(), 493, 1);
631 if (ret == -1)
632 handleError(__PRETTY_FUNCTION__);
633 return !ret;
634}
635
636HDFSFSPtr HDFSFileSystem::getFS() const
637{

Callers 15

truncateMethod · 0.45
StorageStripeLogMethod · 0.45
ingestPartMethod · 0.45
StorageLogMethod · 0.45
truncateMethod · 0.45
restoreMethod · 0.45
dropPartsImplMethod · 0.45
renameOnDiskMethod · 0.45
executeMethod · 0.45
StorageTinyLogMethod · 0.45

Calls 2

normalizePathFunction · 0.85
getMethod · 0.45

Tested by 1

generateDataFunction · 0.36