we handled the '/' character in reorganize. Filecabinet converts it to a '-' so we are now processing that. The folder templates file still should match exactly how it looks in FCCS

This commit is contained in:
2026-08-24 23:14:56 -05:00
parent 960248b825
commit 79f36fc774
3 changed files with 9 additions and 1 deletions

View File

@@ -139,6 +139,12 @@ def build_folder_patterns(templates):
))
for tmpl in templates:
# FCCS converts "/" to "-" when embedding the folder name in the flat
# export filename ("/" is illegal in Windows filenames), so templates
# copied verbatim from the FCCS UI (e.g. "YYYY Foreign Bank/Income")
# must be normalized the same way to match — and to be usable as an
# output directory component.
tmpl = tmpl.replace("/", "-")
if "YYYY" in tmpl:
# Replace YYYY with captured 4-digit year pattern, escape the rest
parts = tmpl.split("YYYY")