unlink log on remove
This commit is contained in:
parent
611fc2b373
commit
a111aaac46
1 changed files with 3 additions and 2 deletions
|
@ -208,8 +208,9 @@ class Peer(object):
|
||||||
|
|
||||||
def remove(self):
|
def remove(self):
|
||||||
self.join()
|
self.join()
|
||||||
os.unlink(self._dbpath)
|
for path in (self._dbpath, self._logpath, self._infopath):
|
||||||
os.unlink(self._infopath)
|
if os.path.exists(path):
|
||||||
|
os.unlink(path)
|
||||||
|
|
||||||
def sync_db(self):
|
def sync_db(self):
|
||||||
import item.models
|
import item.models
|
||||||
|
|
Loading…
Reference in a new issue