From b6a3652474648748f0c014a1a0f5d3f3ce958e7d Mon Sep 17 00:00:00 2001 From: Dominika Liberda Date: Fri, 17 Dec 2021 19:19:23 +0100 Subject: [PATCH] * remove files from local table when they get deleted --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 218edbd..dcb050c 100755 --- a/main.py +++ b/main.py @@ -159,6 +159,7 @@ class Passthrough(Operations): a = requests.delete("https://api.github.com/repos/DomiOwO/" + repo + "/releases/assets/" + str(assets[path.split("/")[-2]][path.split("/")[-1]]["id"]), headers = headers) print(a.content) + del(assets[path.split('/')[-2]][path.split('/')[-1]]) return 0 def symlink(self, name, target): @@ -236,7 +237,7 @@ class Passthrough(Operations): data = f["buffer"], headers = _h) print(a.content) - + return 0 #del(files[fileByFd(fh)]) def fsync(self, path, fdatasync, fh):