devopshq / artifactory

dohq-artifactory: a Python client for Artifactory
https://devopshq.github.io/artifactory/
MIT License
273 stars 144 forks source link

Unable to walk #418

Closed scorpion35 closed 1 year ago

scorpion35 commented 1 year ago

https://github.com/devopshq/artifactory#walking-directory-tree

from artifactory import ArtifactoryPath

artifactoryPath= ArtifactoryPath("http://repo.jfrog.org/artifactory/gradle-ivy-local", apikey="MY_API_KEY")
for p in artifactoryPath.glob("**/some-package*.zip"):
    print(p)

New to this library, hoping to use it. Auth was fine, but I am unable to walk. Not sure if I am missing something

Running into this error right away

File "C:\Users\admin\Work\\MyArtifactory.py", line 23, in __init__
  for p in artifactoryPath.glob("**/some-package*.zip"):
File "C:\Users\admin\.pyenv\pyenv-win\versions\3.11.2\Lib\pathlib.py", line 953, in glob
  for p in selector.select_from(self):
File "C:\Users\admin\.pyenv\pyenv-win\versions\3.11.2\Lib\pathlib.py", line 408, in _select_from
  for p in successor_select(starting_point, is_dir, exists, scandir):
File "C:\Users\admin\.pyenv\pyenv-win\versions\3.11.2\Lib\pathlib.py", line 355, in _select_from
  with scandir(parent_path) as scandir_it:
        ^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\.pyenv\pyenv-win\versions\3.11.2\Lib\pathlib.py", line 938, in _scandir
  return os.scandir(self)
          ^^^^^^^^^^^^^^^^

OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'https://artifactory.company.com/artifactory/some_repo'
scorpion35 commented 1 year ago

Could be related to https://github.com/devopshq/artifactory/issues/415