From 26c4a7d9c93316d2b06ed19f860412badf2061fb Mon Sep 17 00:00:00 2001 From: JoeamAmier Date: Sun, 3 Sep 2023 16:10:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/Manager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/Manager.py b/source/Manager.py index 0fcc5f0..615605f 100644 --- a/source/Manager.py +++ b/source/Manager.py @@ -1,4 +1,5 @@ from pathlib import Path +from shutil import move __all__ = ['Manager'] @@ -11,3 +12,7 @@ class Manager: @staticmethod def delete(path: Path): path.unlink() + + @staticmethod + def remove(temp: Path, path: Path): + move(temp.resolve(), path.resolve())