osmates settings image-cache move
Move the image cache to a folder, or back to its default folder.
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.
--defaultMove it back to ~/Library/Caches/OSMates/Images.
--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/settings/image-cache/move.json
copiedBytesintegerRequiredAt least 0.
itemsintegerRequiredleftOnstringstatusobjectRequiredstatus.absencestringOne of
notAttached,missing.status.downloadsTostringRequiredstatus.folderstringRequiredstatus.isDefaultbooleanRequiredstatus.leftInDefaultintegerAt least 0.
status.movingJobstringstatus.sizeintegerRequiredAt least 0.
status.unfinishedMovestringstatus.volumestringRequired
Exit statuses
Its exit status is one of these.
| Status | Meaning |
|---|---|
| 0 | The command did what it was asked. |
| 1 | The command failed; with --json, standard error's last line is the error object. |
| 64 | The command line is wrong, as ArgumentParser found before the command ran. |
| 65 | What was given is wrong, found while the command ran; the same command fails until it changes. |
| 75 | The same command can work later with nothing changed, as while an update finishes. |
| 130 | Control-C cancelled what the command started. |