Skip to content

Download stat info for class accessor#64

Open
davcastroruiz wants to merge 1 commit into
Parallels:masterfrom
davcastroruiz:master
Open

Download stat info for class accessor#64
davcastroruiz wants to merge 1 commit into
Parallels:masterfrom
davcastroruiz:master

Conversation

@davcastroruiz

Copy link
Copy Markdown

Recursive Example

path = ArtifactoryPath(ubit_url, auth=auth)
json_stat = ArtifactoryProAccessor()

def get_all_files(pathobj):
if pathobj.is_file():
stat = json_stat.get_downloads_stat_json(pathobj)
print stat
else:
if pathobj.is_dir():
for i in pathobj.iterdir():
get_all_files(i)
return pathobj

@davcastroruiz

Copy link
Copy Markdown
Author

Artifactory Stats, recursive folders, V1.0
Authors: David Castro
{u'uri': u'https://xxx/artifactory/xxxl/xxy/1.0.0.4774.zip/', u'lastDownloadedBy': u'jinlulix', u'lastDownloaded': 1540525509520L, u'downloadCount': 21, u'remoteDownloadCount': 0, u'remoteLastDownloaded': 0}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant