Ensure the log and results folder are there before snakemake rules are executed
For now the way the log_directories and cluster_config are created with the bash commands.
Create log directories
os.makedirs( os.path.join( os.getcwd(), config['log_dir'], ), exist_ok=True)
if cluster_config: os.makedirs( os.path.join( os.getcwd(), os.path.dirname(cluster_config['default']['out']), ), exist_ok=True)
Perhaps we can consider using an extra labeling : on_start, which ensures that the log_folders and results are there before any rule is executed. This is not urgent so we can deal with it later.