Skip to content

Commit e9acad8

Browse files
committed
Updated function to move as it's clearer - it operates the same as mv on linux.
1 parent 50d1c87 commit e9acad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/storage/StorageApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ export class StorageApi {
164164
}
165165

166166
/**
167-
* Renames an existing file.
167+
* Moves an existing file, optionally renaming it at the same time.
168168
*
169169
* @param bucketId The bucket which contains the file.
170170
* @param fromPath The original file path, including the current file name. For example `folder/image.png`.
171171
* @param toPath The new file path, including the new file name. For example `folder/image-copy.png`.
172172
*/
173-
async renameFile(
173+
async moveFile(
174174
bucketId: string,
175175
fromPath: string,
176176
toPath: string

0 commit comments

Comments
 (0)