From f1f18f7ea5ad0ab400155587b66be77da6e36046 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Wed, 10 Sep 2014 16:23:02 +0200 Subject: Implement get_fileinfo --- industriart/artifactory.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/industriart/artifactory.py b/industriart/artifactory.py index 1586a65..ca409ca 100644 --- a/industriart/artifactory.py +++ b/industriart/artifactory.py @@ -97,6 +97,17 @@ class Artifactory(object): url = posixpath.join(self.base, 'api/repositories') return self.get(url) + def get_fileinfo(self, repo, file): + """ + Return information about a file + + :arg str repo: The repository where the file lives in + :arg str file: The path of the file + """ + url = posixpath.join(self.base, 'api', 'storage', + repo, file) + return self.get(url) + def _copy_or_move(self, action, source, target): try: if len(source) != 2: -- cgit v1.2.3