Files
opm-simulators/opm/simulators/utils
Bård Skaflestad c0fa8e4ba1 Allow For Regex Metacharacters in Case Name During File Removal
This commit pulls the 'baseName' out of the file removal regular
expression since it's a user-controlled string that might happen to
contain regular expression metacharacters like '+' or '-'.  In rare
corner cases, those characters might lead to matching too many or
not enough files, thus making 'prepareResultOutputDirectory()' too
fragile.

This commit therefore switches to using regular string matching for
the 'baseName', and only for regular files--i.e., symbolic links and
directories are omitted from consideration.  We also, as an extra
special case, exempt grid files from file removal since it's not
entirely impossible for 'CASE.DATA' to use 'CASE.EGRID' as an input
file (GDFILE keyword).
2025-05-20 15:49:12 +02:00
..
2025-03-07 12:32:35 +01:00
2021-06-18 11:43:54 +02:00
2021-10-05 13:07:52 +02:00
2021-10-05 13:07:52 +02:00
2023-08-15 09:32:10 +02:00
2023-02-24 11:56:17 +01:00
2025-01-21 14:41:17 +01:00
2023-02-01 15:42:04 +01:00
2023-02-01 15:42:04 +01:00
2025-01-17 22:01:11 +01:00
2025-02-06 12:57:25 +01:00
2025-02-06 12:57:25 +01:00
2025-02-06 12:57:25 +01:00
2025-03-06 13:31:58 +01:00