fs.find wildcards
Started by apemanzilla, Apr 14 2014 05:27 PM
16 replies to this topic
#1
Posted 14 April 2014 - 05:27 PM
Could anyone provide a list of acceptable patterns and wildcards for use with fs.find? I'm making a pure-Lua implementation of it for one of my projects. All I could find so far was the '*' wildcard.
#2
Posted 14 April 2014 - 06:40 PM
I don't think there are any others since none are documented on the wiki besides from the asterisk. I have the source in front of me.. but I don't know how regexes work (should I be ashamed?). And I'm assuming it wouldn't be okay to post the source here for someone that understands them to decipher, so I won't.
#3
Posted 14 April 2014 - 06:54 PM
Lignum, on 14 April 2014 - 06:40 PM, said:
I don't think there are any others since none are documented on the wiki besides from the asterisk. I have the source in front of me.. but I don't know how regexes work (should I be ashamed?). And I'm assuming it wouldn't be okay to post the source here for someone that understands them to decipher, so I won't.
fs.find("rom/????/gps") finds rom/apis/gps and rom/help/gps...
Edited by Apemanzilla, 14 April 2014 - 06:55 PM.
#4
Posted 14 April 2014 - 06:59 PM
Pure guessing here but it would make sense
* - one or more wildcards
? - one wildcard
Wonder if there are other unknown ones.
* - one or more wildcards
? - one wildcard
Wonder if there are other unknown ones.
Edited by wojbie, 14 April 2014 - 06:59 PM.
#9
#13
Posted 14 April 2014 - 08:23 PM
Anyone knows why nothing works for me? I'm using CC 1.62.
#16
Posted 14 April 2014 - 09:10 PM
Lignum, on 14 April 2014 - 09:04 PM, said:
Ah, well that would explain everything
#17
Posted 15 April 2014 - 01:55 PM
Alright, in further testing it appears that in regular CC, only the * wildcard is accepted. Others may be available in emulators.
3 user(s) are reading this topic
0 members, 3 guests, 0 anonymous users











