Files

Move or rename a file or directory

Atomic rename(2) when source and destination share a volume. Creates missing parent directories of to. collision decides what happens when to exists (default fail → 409); replace refuses to clobber a directory tree. Both endpoints must pass the workspace symlink-escape guard.

post/v1/filesystem/move-file

Request

  • Base URL: http://localhost:9998
  • URL: http://localhost:9998/v1/filesystem/move-file
  • Auth: HTTP bearer

Request body

fromstring required
tostring required
collision'fail' | 'replace' | 'keep_both' | 'merge'

Response

Moved

fromstring required
tostring required

Changes

No recorded changes to this operation across all 1 revision of this API.