mirror of
https://github.com/9001/copyparty.git
synced 2026-03-22 08:03:32 +10:00
only load *.conf files when including a folder
This commit is contained in:
@@ -1515,8 +1515,8 @@ def expand_config_file(ret: list[str], fp: str, ipath: str) -> None:
|
||||
if os.path.isdir(fp):
|
||||
for fn in sorted(os.listdir(fp)):
|
||||
fp2 = os.path.join(fp, fn)
|
||||
if not os.path.isfile(fp2):
|
||||
continue # dont recurse
|
||||
if not fp2.endswith(".conf") or fp in ipath:
|
||||
continue
|
||||
|
||||
expand_config_file(ret, fp2, ipath)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user