From 531ff35183bc7fd1b175f9020500f05da3039da0 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 3 Jan 2023 09:50:31 -0600 Subject: [PATCH] Ignore hidden directories (e.g. .git) --- composer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.py b/composer.py index c071a97..5611e22 100644 --- a/composer.py +++ b/composer.py @@ -18,7 +18,7 @@ in exclude_containers[exclude_containers.find('=')+1:].split(',')] compose_dirs = [] for dir in os.listdir(compose_path): - if os.path.isdir(compose_path + dir) and dir not in exclude_containers: + if os.path.isdir(compose_path + dir) and dir not in exclude_containers and dir[0] != '.': compose_dirs.append(compose_path + dir + '/') containers = []