Skip to content

Rename content #12009

@FirelightFlagboy

Description

@FirelightFlagboy

This will be notably used by archive_device since it only need to change the file extension of the device file.

pub async fn rename_file(old: &Path, new: &Path) -> Result<(), RenameFileError> {
  todo!()
}

Error:

  • StorageNotAvailable
  • InvalidParent (Parent is not a folder)
  • InvalidPath (Malformated path e.g: missing filename)
  • NotFound (old not found, or new parent is missing)
  • Internal (other specific errors)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ClientArea: Parsec desktop applicationA-NativeA-WebArea: Web-related issueI-RustImpact: Rust-related stuff

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions