Change the default to not loop

This commit is contained in:
tcely 2025-05-22 10:10:07 -04:00 committed by GitHub
parent fc3a68393d
commit 5c2dfca00f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,7 +130,7 @@ def file_is_editable(filepath):
return False
def directory_and_stem(arg_path, /, *, only_once=False):
def directory_and_stem(arg_path, /, *, only_once=True):
filepath = Path(arg_path)
stem = Path(filepath.stem)
while not only_once and stem.suffixes and '' != stem.suffix: