mirror of https://gitlab.com/bashrc2/epicyon
Remove deactivated files
parent
78324f2f07
commit
122bd2503c
|
@ -697,6 +697,10 @@ def removeAccount(baseDir: str,nickname: str,domain: str,port: int) -> bool:
|
|||
os.remove(baseDir+'/keys/public/'+handle+'.pem')
|
||||
if os.path.isdir(baseDir+'/sharefiles/'+nickname):
|
||||
shutil.rmtree(baseDir+'/sharefiles/'+nickname)
|
||||
if os.path.isfile(baseDir+'/wfdeactivated/'+handle+'.json':
|
||||
os.remove(baseDir+'/wfdeactivated/'+handle+'.json')
|
||||
if os.path.isdir(baseDir+'/sharefilesdeactivated/'+nickname):
|
||||
shutil.rmtree(baseDir+'/sharefilesdeactivated/'+nickname)
|
||||
return True
|
||||
|
||||
def deactivateAccount(baseDir: str,nickname: str,domain: str) -> bool:
|
||||
|
|
Loading…
Reference in New Issue