Utils: Use isSameDevice in copyFile

Change-Id: I36389a88c4474d46ef4fdb9369cf9f4219f6099d
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-02-02 10:03:56 +01:00
parent 144dff8d74
commit 0c1b59fb1a

View File

@@ -1406,7 +1406,7 @@ expected_str<void> FilePath::copyRecursively(const FilePath &target) const
expected_str<void> FilePath::copyFile(const FilePath &target) const expected_str<void> FilePath::copyFile(const FilePath &target) const
{ {
if (host() != target.host()) { if (!isSameDevice(target)) {
// FIXME: This does not scale. // FIXME: This does not scale.
const expected_str<QByteArray> contents = fileContents(); const expected_str<QByteArray> contents = fileContents();
if (!contents) { if (!contents) {