remove overloads
Synopses
Declared in <bdls_filesystemutil.h>
Remove the file or directory at the specified path. If the path refers to a directory and the optionally specified recursiveFlag is true, recursively remove all files and directories within the specified directory before removing the directory itself. Return 0 on success and a non‐zero value otherwise. If path refers to a symbolic link, the symbolic link will be removed, not the target of the link. Note that if path is a directory, and the directory is not empty, and recursive is false, this method will fail. Also note that if the function fails when recursive is true, it may or may not have removed some files or directories before failing. Also note that if remove is called on "." or "..", it will fail with no effect. 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
remove(
char const* path,
bool recursiveFlag = false);
Same as remove(const char *, bool), but accepts a STRING_TYPE path.
template<class STRING_TYPE>
static
int
remove(
STRING_TYPE const& path,
bool recursiveFlag = false);
Created with MrDocs