Expand description
Module for /edit entrypoint that handles delete/rename actions.
Structsยง
- Payload ๐
- Struct to represent the payload data with the URL locator and path locator and the new name for the file.
- edit
- Handles requests for the
/editendpoint, to delete/rename media files and directories.
Functionsยง
- delete ๐
- Deletes the file.
- extract_
media_ ๐path - Extracts the path the file/directory that has to be modified from the payload received.
- is_
valid_ ๐name - Checks if the new filename is valid with multiple conditions.
- rename ๐
- Renames the file.