Last active
March 31, 2025 19:52
-
-
Save atwong/259b1867f8dbfa826e5692e73505640f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from argparse import ArgumentParser | |
from pathlib import Path | |
import re | |
PYTHON_FILE_PATTERN = re.compile(r"[a-zA-Z][a-zA-Z0-9_]*\.py") | |
def find_duplicate(entry: Path): | |
pass | |
def walker(topdir: Path): | |
for entry in topdir.iterdir(): | |
if entry.is_dir(): | |
walker(entry) | |
else: | |
find_duplicate(entry) | |
if __name__ == "__main__": | |
parser = ArgumentParser() | |
parser.add_argument("topdir", type=Path) | |
args = parser.parse_args() | |
walker(args.topdir) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment