from pathlib import Path def main(args): for target in args: path = Path(target) path.touch(exist_ok=True)