MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / copyFile

Function copyFile

Libraries/FileSystem/FileSystem.h:155–158  ·  view source on GitHub ↗

@brief Copy a single file @param source Source file path @param destination Destination file path @param copyFlags Copy flags (overwrite, use clone api etc.) @return Valid Result if copy succeeded Example: \snippet Tests/Libraries/FileSystem/FileSystemTest.cpp copyExistsFileSnippet

Source from the content-addressed store, hash-verified

153 /// Example:
154 /// \snippet Tests/Libraries/FileSystem/FileSystemTest.cpp copyExistsFileSnippet
155 Result copyFile(StringSpan source, StringSpan destination, CopyFlags copyFlags = CopyFlags())
156 {
157 return copyFiles(CopyOperation{source, destination, copyFlags});
158 }
159
160 /// @brief Copy many directories
161 /// @param sourceDestination View over a sequence of CopyOperation describing copies to be done

Callers 4

copyFilesMethod · 0.85
copyFileMethod · 0.85
copyDirectoryMethod · 0.85
copyFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected