mirror of https://github.com/kf7eel/hbnet.git
remove old PEER files
This commit is contained in:
parent
7d7cea8447
commit
c80b6bc265
|
|
@ -1822,6 +1822,7 @@ if __name__ == '__main__':
|
|||
# Create folder so hbnet.py can access list PEER connections
|
||||
print(CONFIG['LOGGER']['LOG_NAME'])
|
||||
if Path('/tmp/' + (CONFIG['LOGGER']['LOG_NAME'] + '_PEERS/')).exists():
|
||||
os.remove('/tmp/' + (CONFIG['LOGGER']['LOG_NAME'] + '_PEERS/*'))
|
||||
pass
|
||||
else:
|
||||
Path('/tmp/' + (CONFIG['LOGGER']['LOG_NAME'] + '_PEERS/')).mkdir()
|
||||
|
|
|
|||
|
|
@ -1153,6 +1153,7 @@ if __name__ == '__main__':
|
|||
|
||||
# Create folder so hbnet.py can access list PEER connections
|
||||
if Path('/tmp/' + (CONFIG['LOGGER']['LOG_NAME'] + '_PEERS/')).exists():
|
||||
os.remove('/tmp/' + (CONFIG['LOGGER']['LOG_NAME'] + '_PEERS/*'))
|
||||
pass
|
||||
else:
|
||||
Path('/tmp/' + (CONFIG['LOGGER']['LOG_NAME'] + '_PEERS/')).mkdir()
|
||||
|
|
|
|||
Loading…
Reference in New Issue