Skip to content

Commit

Permalink
Make list_paths() include dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Oct 21, 2022
1 parent 26fa719 commit 69599af
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion dandi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69599af

Please sign in to comment.