Using a regular expression to capture the release from the folder name.
Upon init, this check is non-strict (i.e no exception is raised if release is unable to be found) since it could refer to a parent folder.
When parsing through the subfolder, the check is string (i.e an exception is raised if no release is found) since those are expected to be Snomed release folders (with SnomedCT in the names).
Added some relevant tests for working and failing folder names. Both just the base names as well as longer paths. For both strict and non-strict mode.
As per #467
Using a regular expression to capture the release from the folder name.
Upon init, this check is non-strict (i.e no exception is raised if release is unable to be found) since it could refer to a parent folder.
When parsing through the subfolder, the check is string (i.e an exception is raised if no release is found) since those are expected to be Snomed release folders (with
SnomedCT
in the names).Added some relevant tests for working and failing folder names. Both just the base names as well as longer paths. For both strict and non-strict mode.