createPrivateDirectory overloads
Synopses
Declared in <bdls_filesystemutil.h>
Create a private directory with the specified path. Return 0 on success, k_ERROR_PATH_NOT_FOUND if a component used as a directory in path either does not exist or is not a directory, k_ERROR_ALREADY_EXISTS if the file system entry (not necessarily a directory) with the name path already exists, and a negative value for any other kind of error. The directory is created with permissions restricting access, as closely as possible, to the caller's userid only. Note that directories created on Microsoft Windows may receive default, not restricted permissions. The parameterized STRING_TYPE must be one of bsl::string, std::string, std::pmr::string (if supported), bsl::string_view, or bslstl::StringRef.
static
int
createPrivateDirectory(char const* path);
Same as the overload taking const char *.
template<class STRING_TYPE>
static
int
createPrivateDirectory(STRING_TYPE const& path);
Created with MrDocs