ΒΆstd::error_code rename(const llvm::Twine& from,
const llvm::Twine& to)
std::error_code rename(const llvm::Twine& from,
const llvm::Twine& to)
Description
Rename \a from to \a to. Files are renamed as if by POSIX rename(), except that on Windows there may be a short interval of time during which the destination file does not exist.
Declared at: llvm/include/llvm/Support/FileSystem.h:412
Parameters
- const llvm::Twine& from
- The path to rename from.
- const llvm::Twine& to
- The path to rename to. This is created.