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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user