pub(crate) async fn rename_file(
state: &AppState,
container: Option<&str>,
req: FileRenameRequest,
) -> Result<String, (StatusCode, String)>Expand description
Renames req.path to req.name in its folder, for a container agent (container is its
pane) or for a caller on the host. The new path, as the caller names paths.