We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An endpoint that moves a specified file to a specified path. This can also cause renaming - it's an equivalent of Linux's mv command.
mv
POST
/file/move
Query parameters:
source
destination
overwrite
true
false
Responses:
204 No Content
404 Not Found
409 Conflict
400 Bad Request
The new path of the file should be also verified with isPathValid to make sure the outcome will be what user expects.
isPathValid
User can request to move file /docs/private/poetry.md to /docs/private/hidden/art.md. It means that:
/docs/private/poetry.md
/docs/private/hidden/art.md
hidden
poetry.md
art.md
If the overwrite is set to true and the destination points to an already existing file, it will be overwritten.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
An endpoint that moves a specified file to a specified path. This can also cause renaming - it's an equivalent of Linux's
mv
command.POST
/file/move
Query parameters:
source
destination
overwrite
true
orfalse
false
Responses:
204 No Content
- when the file was successfully moved.404 Not Found
- when couldn't find the file or if the path is pointing to a directory.409 Conflict
- when there already is a file at the destination path butoverwrite
is set to false.400 Bad Request
- when the path is invalid or when the new path is invalid.Extra info
The new path of the file should be also verified with
isPathValid
to make sure the outcome will be what user expects.User can request to move file
/docs/private/poetry.md
to/docs/private/hidden/art.md
. It means that:hidden
needs to be created.poetry.md
needs to be copied asart.md
to thehidden
directory.poetry.md
needs to be deleted.If the
overwrite
is set totrue
and the destination points to an already existing file, it will be overwritten.The text was updated successfully, but these errors were encountered: