mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 02:15:12 +00:00
Remove directory
This commit is contained in:
1 parent
61d0cb1f48
commit
ad72231aef
1 file changed
+2
-1
@@ -14,6 +14,7 @@ from utils import copytree
|
||||
from shutil import copyfile
|
||||
from shutil import make_archive
|
||||
from shutil import unpack_archive
|
||||
from shutil import rmtree
|
||||
from content import dangerousCSS
|
||||
|
||||
|
||||
@@ -64,7 +65,7 @@ def importTheme(baseDir: str, filename: str) -> bool:
|
||||
os.mkdir(themeDir)
|
||||
copytree(tempThemeDir, themeDir)
|
||||
if os.path.isdir(tempThemeDir):
|
||||
os.remove(tempThemeDir)
|
||||
rmtree(tempThemeDir)
|
||||
return os.path.isfile(themeDir + '/theme.json')
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user