MCPcopy Create free account
hub / github.com/SFML/SFML / renameFile

Method renameFile

src/SFML/Network/Ftp.cpp:283–290  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

281
282////////////////////////////////////////////////////////////
283Ftp::Response Ftp::renameFile(const std::filesystem::path& file, const std::filesystem::path& newName)
284{
285 Response response = sendCommand("RNFR", file.string());
286 if (response.isOk())
287 response = sendCommand("RNTO", newName.string());
288
289 return response;
290}
291
292
293////////////////////////////////////////////////////////////

Callers 1

mainFunction · 0.80

Calls 1

isOkMethod · 0.45

Tested by

no test coverage detected