+ deleting releases

meow
Dominika 2021-12-20 02:50:56 +01:00
parent 9b1950dfb2
commit 2053eb431f
1 changed files with 6 additions and 1 deletions

View File

@ -148,7 +148,12 @@ class Passthrough(Operations):
def rmdir(self, path):
print("-- rmdir")
full_path = self._full_path(path)
return os.rmdir(full_path)
for r in releases:
if r["name"] == path.split("/")[1]:
a = requests.delete("https://api.github.com/repos/DomiOwO/" + repo + "/releases/" + str(r["id"]),
headers=headers)
print(a.content)
return 0
def mkdir(self, path, mode):
print("-- mkdir", path)