file_select¶
file_select ¶
parse_datetime_from_filename ¶
Parse the {DATETIME}__<FTP_FILENAME>-encoded datetime out of a filename, or return None if it doesn't match that shape.
Shared between select_file_to_upload (local files) and select_latest_remote_file (core/sharepoint.py, remote SharePoint folder listings) -- both need the exact same "pick the latest by filename-encoded datetime" rule (see CLAUDE.md's "What this does" section).
Source code in source/src/imarina_load_researchers/core/file_select.py
select_file_to_upload ¶
Selects the file to upload from upload_dir.
Priority: 1. Latest file matching iMarina_upload_