diff --git a/kodi_addon_checker/handle_files.py b/kodi_addon_checker/handle_files.py index 4d70457e..acab878a 100644 --- a/kodi_addon_checker/handle_files.py +++ b/kodi_addon_checker/handle_files.py @@ -46,10 +46,14 @@ def create_file_index(path: str): """ file_index = [] for root, folders, files in os.walk(path, topdown=True): + if ".directory" in files: + files.remove(".directory") if ".git" in folders: folders.remove(".git") for file_name in files: - file_index.append({"path": root, "name": file_name}) + if not os.path.basename(root).startswith("."): + file_index.append({"path": root, "name": file_name}) + return file_index