Skip to content
Permalink
Browse files
feat: implement support for removing GFAL remote files (#1103)
* add gfal RemoteObject.remove() method

* fmt

Co-authored-by: Johannes Köster <johannes.koester@uni-due.de>
Co-authored-by: Johannes Köster <johannes.koester@tu-dortmund.de>
  • Loading branch information
3 people committed Jan 26, 2022
1 parent 8868b00 commit 25943e5630ff6d83afa5cba28edf473ce2ca87da
Showing 1 changed file with 3 additions and 0 deletions.
@@ -151,6 +151,9 @@ def upload(self):
# disable all timeouts (file transfers can take a long time)
self._gfal("copy", "-p", "-f", "-n", "4", "-t", "0", "-T", "0", source, target)

def remove(self):
self._gfal("rm", "-r", self.remote_file())

@property
def list(self):
# TODO implement listing of remote files with patterns

0 comments on commit 25943e5

Please sign in to comment.