Renames or moves a folder.
Parameters
Vault
The vault to work in.
Type: Vault reference
Folder Path
If the specified folder path does not exist, an error is returned.
Type: Text
New Folder Path
If the new folder path is the same as the original one, nothing happens. If the new folder path already exists, an error is returned. If the new folder path contains a folder structure that does not exist, an error is returned.
Type: Text
Examples:
Current folder path /my/old/directory
, new folder path /my/old/My Directory
:
Subfolder directory
in folder /my/old/
is renamed to My Directory
.
Current folder path /my/old/directory
, new folder path /my/old/My Directory
:
Subfolder directory
in folder /my/old/
is renamed to My Directory
.
Current folder path /my/old/stuff
, new folder path /My Old Stuff
:
Subfolder stuff
in folder /my/old/
is moved to the root level of the vault and named My Old Stuff
; folder /my/old
will remain.
Current folder path /All The Notes
, new folder path /all/the/notes
:
- If folder
/all/the/
exists:/All The Notes
will be moved into/all/the/
and renamed tonotes
. - If folder
/all/the/
does not exist: An error.
Related Links
- Search the Actions for Obsidian community forum for "Rename/Move Folder"