MCPcopy Create free account
hub / github.com/catboost/catboost / MakeDirectory

Method MakeDirectory

util/system/fs.cpp:74–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74bool NFs::MakeDirectory(const TString& path, EFilePermissions mode) {
75#if defined(_win_)
76 Y_UNUSED(mode);
77 return NFsPrivate::WinMakeDirectory(path);
78#else
79 return mkdir(path.data(), mode) == 0;
80#endif
81}
82
83bool NFs::MakeDirectoryRecursive(const TString& path, EFilePermissions mode, bool alwaysCreate) {
84 if (NFs::Exists(path) && TFileStat(path).IsDir()) {

Callers

nothing calls this directly

Calls 4

Y_UNUSEDFunction · 0.85
WinMakeDirectoryFunction · 0.85
mkdirFunction · 0.50
dataMethod · 0.45

Tested by

no test coverage detected