MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / canClone

Function canClone

launcher/FileSystem.cpp:1264–1272  ·  view source on GitHub ↗

* @brief if the Filesystem is reflink/clone capable and both paths are on the same device * */

Source from the content-addressed store, hash-verified

1262 *
1263 */
1264bool canClone(const QString& src, const QString& dst)
1265{
1266 auto srcVInfo = statFS(src);
1267 auto dstVInfo = statFS(dst);
1268
1269 bool sameDevice = srcVInfo.rootPath == dstVInfo.rootPath;
1270
1271 return sameDevice && canCloneOnFS(srcVInfo) && canCloneOnFS(dstVInfo);
1272}
1273
1274/**
1275 * @brief reflink/clones a directory and it's contents from src to dest

Callers 1

operator()Method · 0.85

Calls 2

statFSFunction · 0.85
canCloneOnFSFunction · 0.85

Tested by

no test coverage detected