This method depends on receiving a string "path_pattern" with a very specific pattern. We need to add some checks in the method that the pattern is correct:
not an empty string
the string must have a suffix (for pathlib)
the string must have one and only one occurrence of the separator.
This method depends on receiving a string "path_pattern" with a very specific pattern. We need to add some checks in the method that the pattern is correct: