Parallels / artifactory

A Python client for Artifactory
MIT License
82 stars 54 forks source link

Way to delete/remove file? #38

Closed drohm closed 8 years ago

drohm commented 8 years ago

Is there a way to delete a file in Artifactory? I'm currently trying to update a file that exists but upon upload I'm getting an error stating the file exists:

[Errno 17] File exists

I saw the 'unlink' method on the _ArtifactoryAccessor class, but that is a private class.

knazarov commented 8 years ago

Hi @drohm, You can use pretty much all methods that pathlib provides, including unlink() See the reference here: https://docs.python.org/3/library/pathlib.html

I've tried to make ArtifactoryPath a seamless, drop-in add-on to the pathlib family.

drohm commented 8 years ago

Unlink worked great. Thanks.