forked from qt-creator/qt-creator
Utils: Use isSameDevice in copyFile
Change-Id: I36389a88c4474d46ef4fdb9369cf9f4219f6099d Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user