mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
Support: Add llvm::sys::fs::copy_file
A function to copy one file's contents to another. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211302 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -335,6 +335,12 @@ std::error_code remove(const Twine &path, bool IgnoreNonExisting = true);
|
||||
/// @param to The path to rename to. This is created.
|
||||
std::error_code rename(const Twine &from, const Twine &to);
|
||||
|
||||
/// @brief Copy the contents of \a From to \a To.
|
||||
///
|
||||
/// @param From The path to copy from.
|
||||
/// @param To The path to copy to. This is created.
|
||||
std::error_code copy_file(const Twine &From, const Twine &To);
|
||||
|
||||
/// @brief Resize path to size. File is resized as if by POSIX truncate().
|
||||
///
|
||||
/// @param path Input path.
|
||||
|
Reference in New Issue
Block a user