it seems not possible to create a repo/dir from ArtifactoryPath
I mean if I I want create a path like this:
http://localhost:8080/artifactory/<xxx-yyy>
is that possible, I got exception:
AssertionError: OSError(2, "No such file or directory:
Any update? I cannot create directory. I got 404 error - lines which check if exist give me that result
if pathobj.exists():
raise OSError(17, "File exists: '%s'" % str(pathobj))
But when I comment it I got error 500 error 500 Repository '' is not a local repository Any quick fix?
@diablo248
I gave up this library at last, and created one by myself, will open source it soon.
for your issue, I am not clear.
I found issue, I think I cannot create empty dir in artifactory.
I remove:
if self.is_dir(): target = self / pathlib.Path(file_name).name
from deploy_file and now it works ok, deploy_file create all necessary folders and file, but it is necessary to create ArtifactoryPath with filename.
I have found that when I tried to create a directory on artifactory, I received
OSError(2, "No such file or directory:
or
RuntimeError:{"errors":[{"status":404,"message":"Resource not found"}]}
due to missing or incorrect auth (i.e. username/password).
These were cryptic and misleading errors.
Creating a repository supported in https://github.com/devopshq/artifactory
https://github.com/devopshq/artifactory#repositorylocal