refactor: more commandline usability cleanup

This commit is contained in:
Dobin Rutishauser
2025-06-09 11:28:13 +02:00
parent 9ed0469884
commit 99ad23d69d
5 changed files with 150 additions and 57 deletions
+4
View File
@@ -30,6 +30,10 @@ def create_c_from_template(settings: Settings, payload_len: int):
logger.info("-[ Carrier create Template: {}".format(
settings.main_c_path))
# check that source directory exists
if not os.path.exists(src):
raise FileNotFoundError("Source directory does not exist: {}".format(src))
# copy *.c *.h files from src directory to dst directory
for file in os.listdir(src):