mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +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:
|
def _unlink(path: str, optional: bool=False) -> None:
|
||||||
logger = get_logger()
|
logger = get_logger()
|
||||||
if optional and not os.access(path, os.F_OK):
|
if optional and not os.access(path, os.F_OK):
|
||||||
logger.info("SKIP ---- %s", path)
|
logger.info("SKIP-RM - %s", path)
|
||||||
return
|
return
|
||||||
logger.info("RM ------ %s", path)
|
logger.info("RM ------ %s", path)
|
||||||
os.unlink(path)
|
os.unlink(path)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def _write(path: str, text: str, optional: bool=False) -> None:
|
def _write(path: str, text: str, optional: bool=False) -> None:
|
||||||
logger = get_logger()
|
logger = get_logger()
|
||||||
if optional and not os.access(path, os.F_OK):
|
if optional and not os.access(path, os.F_OK):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user