@spacehq/sdk > UserStorage > movePaths
UserStorage.movePaths() method
Moves files in a given bucket from source to destination. Multiple moves can be requested by matching up the indices of the sourcePath and destPath arrays
Signature:
movePaths(bucketName: string, sourcePaths: string[], destPaths: string[]): Promise<MovePathsResponse>;
Parameters
Parameter | Type | Description |
---|---|---|
bucketName | string | name of bucket |
sourcePaths | string[] | array of strings corresponding to the source paths |
destPaths | string[] | array of strings corresponding to the target paths |
Returns:
Promise<MovePathsResponse>