Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to walk #418

Closed
scorpion35 opened this issue Jun 1, 2023 · 1 comment
Closed

Unable to walk #418

scorpion35 opened this issue Jun 1, 2023 · 1 comment

Comments

@scorpion35
Copy link

scorpion35 commented Jun 1, 2023

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
Copy link
Author

Could be related to #415

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

No branches or pull requests

1 participant