mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 13:29:25 +08:00
fix: do not create bin/status dir when try to remove status file although this dir has already existed
This commit is contained in:
@@ -84,7 +84,6 @@ class InstanceWatcher:
|
|||||||
def remove_status_file(self, name):
|
def remove_status_file(self, name):
|
||||||
f = pathlib.Path(InstanceWatcher.STATUS_DIR) / f"{name}.status"
|
f = pathlib.Path(InstanceWatcher.STATUS_DIR) / f"{name}.status"
|
||||||
if f.exists():
|
if f.exists():
|
||||||
f.parent.mkdir(parents=True, exist_ok=True)
|
|
||||||
f.unlink()
|
f.unlink()
|
||||||
|
|
||||||
def get_all_prev_instance(self):
|
def get_all_prev_instance(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user