Hello!
I've noticed a couple of issues with MacOS's File() (and by extension FileMulti()) functions' file filtering.
-
The filter argument only works for a single file extension - you can't pass, say, "jpg png" to filter out any non-image files.
-
The extension filter argument MacOS expects (jpg, for example) isn't the same format as what Linux and Windows takes (*.jpg).
I've submitted a PR to resolve these issues - #13. I also expounded on the documentation to give an idea of what a cross-platform filter argument would look like. I just wanted to create an issue here to explain it a bit in case you had some questions or wanted to discuss it a bit.
Hello!
I've noticed a couple of issues with MacOS's File() (and by extension FileMulti()) functions' file filtering.
The filter argument only works for a single file extension - you can't pass, say, "jpg png" to filter out any non-image files.
The extension filter argument MacOS expects (
jpg, for example) isn't the same format as what Linux and Windows takes (*.jpg).I've submitted a PR to resolve these issues - #13. I also expounded on the documentation to give an idea of what a cross-platform filter argument would look like. I just wanted to create an issue here to explain it a bit in case you had some questions or wanted to discuss it a bit.