XHS_Downloader/source/Manager.py
2023-09-03 16:17:29 +08:00

19 lines
346 B
Python

from pathlib import Path
from shutil import move
__all__ = ['Manager']
class Manager:
@staticmethod
def is_exists(path: Path) -> bool:
return path.exists()
@staticmethod
def delete(path: Path):
path.unlink()
@staticmethod
def move(temp: Path, path: Path):
move(temp.resolve(), path.resolve())