V Forum

[ log in ]

Wildcards in os module?

vktec 2019-06-21 09:07
In the "V scripts" documentation (https://vlang.io/docs#bash), it is stated that the #v directive "will make all functions in the os module global". Later in that section, examples such as `rm('build/*')` are given, which appears to imply that os.rm parses wildcards in its arguments. To me, this seems like a bug, as it would allow filenames constructed from user input to do unexpected things.
medvednikov 2019-06-21 14:46
Yeah, I'm not 100% certain about this. Just an idea at this point.

Powered by Vorum, open-source blogging/forum software written in V