mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
fix
This commit is contained in:
parent
04f9bbe568
commit
a67c20be29
@ -71,13 +71,12 @@ def _rmdir(path: str) -> None:
|
||||
def _unlink(path: str, optional: bool=False) -> None:
|
||||
logger = get_logger()
|
||||
if optional and not os.access(path, os.F_OK):
|
||||
logger.info("SKIP ---- %s", path)
|
||||
logger.info("SKIP-RM - %s", path)
|
||||
return
|
||||
logger.info("RM ------ %s", path)
|
||||
os.unlink(path)
|
||||
|
||||
|
||||
|
||||
def _write(path: str, text: str, optional: bool=False) -> None:
|
||||
logger = get_logger()
|
||||
if optional and not os.access(path, os.F_OK):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user