Skip to content
This repository was archived by the owner on Oct 2, 2021. It is now read-only.

Commit 53b3d04

Browse files
committed
Added support for moving files
1 parent 4c1c3ee commit 53b3d04

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

genomespaceclient/client.py

+8
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,14 @@ def copy(self, source, destination):
175175
raise GSClientException(
176176
"Either source or destination must be a valid GenomeSpace location.")
177177

178+
def move(self, source, destination):
179+
if self._is_genomespace_url(source):
180+
self.copy(source, destination)
181+
self.delete(source)
182+
else:
183+
raise GSClientException(
184+
"Source must be a valid GenomeSpace locations")
185+
178186
def list(self, genomespace_url):
179187
return self._api_get_request(genomespace_url)
180188

0 commit comments

Comments
 (0)