I have a bunch of directories that follow this naming convention:
foo
foo.v2
foo_v01
foo_v02
foo_v03
bar
bar.v3
bar_v01
bar_v02
I am looking for a regex expression to only glob original directories (foo and foo_v01; bar and bar_v01). I'm using the Path.glob(pattern)
from pathlib
to glob the files. I would like to glob the original directories specifically by the name, not by timestamp.