mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
fix
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user