From 69599af1b516cb405b3bc13b5ed4aba10e05b4d8 Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Fri, 21 Oct 2022 11:35:33 -0400 Subject: [PATCH] Make `list_paths()` include dotfiles --- dandi/utils.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/dandi/utils.py b/dandi/utils.py index 65a14aa3f..616d54373 100644 --- a/dandi/utils.py +++ b/dandi/utils.py @@ -357,7 +357,18 @@ def good_file(path: str) -> bool: def list_paths(dirpath: Union[str, Path], dirs: bool = False) -> List[Path]: - return sorted(map(Path, find_files(r".*", [dirpath], dirs=dirs))) + return sorted( + map( + Path, + find_files( + r".*", + [dirpath], + dirs=dirs, + exclude_dotfiles=False, + exclude_dotdirs=False, + ), + ) + ) _cp_supports_reflink: Optional[bool] = None