Find all files matching given path format with datetime
Find all files matching given path format with datetime Question: I’m looking to identify all files whose path matches a given format (for example %Y/%j/data_%d.txt) and retrieve the associated date. A simple solution is to use strptime, but this doesn’t work if a ‘format code’ appears twice in the format (e.g. %Y/%j/data_%Y%m%d.txt). This is a …