Space SDK Package

Space SDK Package

  • Users
  • Storage
  • Space Docs

@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

ParameterTypeDescription
bucketNamestringname of bucket
sourcePathsstring[]array of strings corresponding to the source paths
destPathsstring[]array of strings corresponding to the target paths

Returns:

Promise<MovePathsResponse>

  • UserStorage.movePaths() method
  • Parameters
Space SDK Package
Docs
Getting StartedUsersStorage
Resources
All DocumentationProject SlackBlog
More
GitHubStar
Follow @spacestorage