Request an invite
Docs menu

osmates settings image-cache move

Move the image cache to a folder, or back to its default folder.

Usage
osmates settings image-cache move [<folder>] [--default] [--json]

The folder must be empty or hold only images, on an APFS volume attached to this Mac, outside iCloud Drive and outside every folder a machine shares. A folder that doesn't exist yet is made. Images go to another volume as copies, read back and compared, and leave where they were only once all are copied. Control-C stops the move and leaves the cache where it was; moving to the same folder again goes on from what was copied. The move is refused while a machine is being created or an image downloads, and no machine can be created until it ends.

Arguments

<folder>

The folder.

--default

Move it back to ~/Library/Caches/OSMates/Images.

--json

Print machine-readable JSON.

JSON output

With --json, it prints an object with these fields.

JSON Schema: /schemas/0/cli/settings/image-cache/move.json

copiedBytesintegerRequired

At least 0.

itemsintegerRequired
leftOnstring
statusobjectRequired
status.absencestring

One of notAttached, missing.

status.downloadsTostringRequired
status.folderstringRequired
status.isDefaultbooleanRequired
status.leftInDefaultinteger

At least 0.

status.movingJobstring
status.sizeintegerRequired

At least 0.

status.unfinishedMovestring
status.volumestringRequired

Exit statuses

Its exit status is one of these.

StatusMeaning
0The command did what it was asked.
1The command failed; with --json, standard error's last line is the error object.
64The command line is wrong, as ArgumentParser found before the command ran.
65What was given is wrong, found while the command ran; the same command fails until it changes.
75The same command can work later with nothing changed, as while an update finishes.
130Control-C cancelled what the command started.

Report a problem with this page