foo-webview-sdk
    Preparing search index...

    Interface FileRenameParams

    Parameters for file.rename. Rename a file or directory within its parent directory. A path that does not exist fails with NOT_FOUND, and a name that is already taken with OPERATION_FAILED.

    interface FileRenameParams {
        newName: string;
        path: string;
    }
    Index
    newName: string

    New name, kept in the same directory. A name containing / or \ fails with INVALID_PARAMS.

    path: string

    File or directory to rename.