mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Add a new CopyFile function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13944 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -53,6 +53,10 @@ bool FileOpenable(const std::string &Filename);
|
||||
bool DiffFiles(const std::string &FileA, const std::string &FileB,
|
||||
std::string *Error = 0);
|
||||
|
||||
/// CopyFile - Copy the specified source file to the specified destination,
|
||||
/// overwriting destination if it exists. This returns true on failure.
|
||||
///
|
||||
bool CopyFile(const std::string &Dest, const std::string &Src);
|
||||
|
||||
/// MoveFileOverIfUpdated - If the file specified by New is different than Old,
|
||||
/// or if Old does not exist, move the New file over the Old file. Otherwise,
|
||||
@@ -60,7 +64,7 @@ bool DiffFiles(const std::string &FileA, const std::string &FileB,
|
||||
///
|
||||
void MoveFileOverIfUpdated(const std::string &New, const std::string &Old);
|
||||
|
||||
/// removeFile - Delete the specified file
|
||||
/// removeFile - Delete the specified file.
|
||||
///
|
||||
void removeFile(const std::string &Filename);
|
||||
|
||||
|
@@ -53,6 +53,10 @@ bool FileOpenable(const std::string &Filename);
|
||||
bool DiffFiles(const std::string &FileA, const std::string &FileB,
|
||||
std::string *Error = 0);
|
||||
|
||||
/// CopyFile - Copy the specified source file to the specified destination,
|
||||
/// overwriting destination if it exists. This returns true on failure.
|
||||
///
|
||||
bool CopyFile(const std::string &Dest, const std::string &Src);
|
||||
|
||||
/// MoveFileOverIfUpdated - If the file specified by New is different than Old,
|
||||
/// or if Old does not exist, move the New file over the Old file. Otherwise,
|
||||
@@ -60,7 +64,7 @@ bool DiffFiles(const std::string &FileA, const std::string &FileB,
|
||||
///
|
||||
void MoveFileOverIfUpdated(const std::string &New, const std::string &Old);
|
||||
|
||||
/// removeFile - Delete the specified file
|
||||
/// removeFile - Delete the specified file.
|
||||
///
|
||||
void removeFile(const std::string &Filename);
|
||||
|
||||
|
Reference in New Issue
Block a user