Skip to content

`search_file` does not match exactly `options`

Assuming an archive archive.tar.gz with the following file structure:

.
+-female
| |
| +- my_file.txt
|
+-male
  |
  +- my_file.txt

Using search_file("archive.tar.gz", ["male/my_file.txt"]) will return "archive.tar.gz/female/my_file.txt" instead of "archive.tar.gz/male/my_file.txt"

(Used in that way by vanilla-biometrics in bob.bio.base.database.csv_dataset where female and male are protocols)