Skip to content

Error when copying from temp dir not on same partition as home folder #3

@vrptnc

Description

@vrptnc

I get the following error while trying to run a build using the flex-sdk-provider:
Error: EXDEV: cross-device link not permitted, rename '/tmp/flex-sdk121813-380409-1hzvmao.mitt' -> '/home/<user-name>/.flex-sdk/4.15.0'

This is due to the fact that fs.rename is used to copy the temp folder over to the ~/.flex-sdk folder, which uses glibc's rename function, which throws the EXDEV error because it does not allow renaming files across mount points (which is the case for me, since my root and home folders are on separate partitions).

Suggested solution: Don't use fs.rename, but copy the files over and delete the temp folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions