From edf5776b06705c2d6b9b95bebcf23ef5b476aa06 Mon Sep 17 00:00:00 2001 From: randogoth Date: Thu, 8 Jun 2023 02:09:27 +0300 Subject: [PATCH] bugfixes --- orvani/__pycache__/orvani.cpython-310.pyc | Bin 11241 -> 11252 bytes orvani/orvani.py | 11 ++++++----- .../hashslashslash.cpython-310.pyc | Bin 941 -> 941 bytes 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/orvani/__pycache__/orvani.cpython-310.pyc b/orvani/__pycache__/orvani.cpython-310.pyc index e9a30dc2cbe190300e004048e8aecd18b7a4b6ce..5cbc07081ebe39229d96d9cbfaae6892515eb823 100644 GIT binary patch delta 906 zcmaDE{w16@pO=@5fq{YH9B*Sv#75p9e2i(6+4v0%nX_1H7_!*P7>X1@bPaPBt1SbF zRjgYAqS>1nvsh9XQ?5Y4loGB5+#u^*7-FSkm}}WMI9wQF`D?jKxUzT_@Yb-` za4lr2<*s2^z*oba!n%-&k)bfS&}*`uXpK}90|P@ykvjtegPWfwe-RS{14EGlh>)0k zQq+O-7HdIiQF^K-&tw5HRVK!?$tGgDa&Zg{3@1UsVZ^||z`@SK$ic|L$i>LT$OmF= zt`(cW#F#pnPcn=#ZE~ulJma&;t&+-&*_&5NmN7ChFiuvKu3*fbJWE=RF?aGr4dKaW zq;CXY8E(Q{A4iX0oM*jm&(IqD}?|22G}09KNn0j`9AX zAw^~&(S?&IYRIuQFfuR{Et$MkV;*Ds88C8e?w3ntWQ?2qRbG>^ZnC_B zDWme{P=!~Fj0KY&l&sluKuU8bH!2x0noQoL=~;kyJ*DT5XX4`(2ycCkm!QRb2Q}G>KPdr ziWW~kpfQiJZF0P(x?%%J&K5*4gNXScVhP9qwjxOod)egWn%b^a+3>MjgSQ9}+8i=R>5nyZ5L99g}VkwBIoV-q3e6o_Z dDWlBf2yG?C;K|k6%G~QgQX4?T#>p$Sy#bIs<9q-B diff --git a/orvani/orvani.py b/orvani/orvani.py index 1eaf8bb..a994d01 100644 --- a/orvani/orvani.py +++ b/orvani/orvani.py @@ -160,8 +160,8 @@ class OrvaniTag: self.__cd(target.parent) if fop: target.unlink(missing_ok=True) - if file in self.DB: - del self.DB[file] + if target.name in self.DB: + del self.DB[target.name] if not self.DB: Path(self.FILE).unlink(missing_ok=True) self.__save() @@ -188,7 +188,7 @@ class OrvaniTag: if self.DB[sourcefile]: sourcedata = self.DB[sourcefile] if not retain: - self.purge(source) + self.delete(source) self.__cd(destfolder) self.DB.update( { destfile : sourcedata } ) self.__save() @@ -209,10 +209,11 @@ class OrvaniTag: path = '.' target = Path(path) if target.exists(): - self.__cd(target.parent) + self.__cd(path) DB = self.DB.copy() for file in self.DB.keys(): - if not Path(file).is_file(): + f = target / file + if not f.is_file(): if file in self.DB: del DB[file] self.DB = DB diff --git a/orvani/plugins/__pycache__/hashslashslash.cpython-310.pyc b/orvani/plugins/__pycache__/hashslashslash.cpython-310.pyc index 23aee412e1df63117c19197be7e043b1c68f0e3f..ea8b62e44199ee343c940a27dbcd37b66d7da1a2 100644 GIT binary patch delta 19 acmZ3>zLuRUpO=@5fq{YHAL~Z0#moRJ=mcs2 delta 19 acmZ3>zLuRUpO=@5fq{XcgJ~nzVrBp-6$9}A