diff options
author | Guido Günther <agx@sigxcpu.org> | 2014-09-10 16:23:02 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2014-09-10 16:25:01 +0200 |
commit | f1f18f7ea5ad0ab400155587b66be77da6e36046 (patch) | |
tree | f082d42c55bb40b3d8a0149b36698ecb33d87164 /industriart | |
parent | c59dcb764a925352c9271ae384c749e84760239f (diff) |
Implement get_fileinfo
Diffstat (limited to 'industriart')
-rw-r--r-- | industriart/artifactory.py | 11 |
1 files changed, 11 insertions, 0 deletions
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: |