mv

    mv command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.11
    License
    Apache-2.0
    Last updated
    14 hours ago
    Downloads
    258

    #mv

    Move or rename files and directories through MoonX.

    #Usage

    moonx cli/mv old.txt new.txt moonx cli/mv -n report.txt archive/ moonx cli/mv --backup=simple report.txt archive/

    Move a source to a destination, or multiple sources into a directory. Select overwrite, update and backup behavior explicitly.

    #Common options

    OptionDescription
    -f, --forceReplace without asking.
    -n, --no-clobberSkip existing targets successfully.
    -i, --interactiveAsk before replacing; refusal or EOF returns 1.
    --update=MODESelect the documented destination update policy.
    --backup=CONTROLSelect the documented backup naming policy.
    -T, --no-target-directoryTreat target as a complete path; one source only.
    -v, --verboseShow moves.
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • --no-copy moves by rename. If the rename fails after -b saved the destination, its previous contents remain at the backup name. The default move restores that backup on failure. Cross-filesystem copying remains unsupported. Windows rejects moving symlinks/junctions and backing up destination links.
    • On POSIX, -u skips distinct files with equal timestamps and -i prompts before replacing them. Without backups, both detect hard-link aliases before moving. Windows retains the equal-time refusal because the filesystem type cannot be verified.
    • If both a move and backup restoration fail, inspect the destination and backup paths named in the diagnostic before retrying.

    Build from source with the MoonBit 1.0 RC1 toolchain.

    See the compatibility guide for the supported profile.

    Source Files