diff --git a/RetroUFO.py b/RetroUFO.py index fb9e7ff..9b0d083 100755 --- a/RetroUFO.py +++ b/RetroUFO.py @@ -4,7 +4,7 @@ Grabs the latest version of every libretro core from the build bot. """ __author__ = "Melon Bread" -__version__ = "0.9.1" +__version__ = "0.9.5" __license__ = "MIT" import argparse @@ -112,7 +112,7 @@ def extract_cores(_location): def clean_up(): """ Removes all the downloaded files """ - if os.listdir('cores'): + if os.path.isdir('cores'): rmtree('cores/') diff --git a/RetroUFO_GUI.py b/RetroUFO_GUI.py index fd26cc6..be3ee44 100755 --- a/RetroUFO_GUI.py +++ b/RetroUFO_GUI.py @@ -4,7 +4,7 @@ Grabs the latest version of every libretro core from the build bot. """ __author__ = "Melon Bread" -__version__ = "0.9.1" +__version__ = "0.9.5" __license__ = "MIT" import os @@ -257,7 +257,7 @@ class Form(QDialog): def clean_up(self): """ Removes all the downloaded files """ - if os.listdir('cores'): + if os.path.isdir('cores'): rmtree('cores/')