Posted 20 April 2012 - 08:44 PM
I've tried searching on Google and didn't see anything. I need a wildcard character so I can use it in my better 'list' program I'm making.
I was planning to make it so if a file doesn't have an extension (e.g. .png .mov .txt) at the end of it's name the 'list' command would automatically add '.exe' at the end of it and if it does then list it as is.
Here's a snippet of my code:
If I haven't said enough then feel free to ask me…
Also if it's not a symbol and it's a function or something I'll use that as well
I was planning to make it so if a file doesn't have an extension (e.g. .png .mov .txt) at the end of it's name the 'list' command would automatically add '.exe' at the end of it and if it does then list it as is.
Here's a snippet of my code:
if fs.isDir( sPath ) then
table.insert( tDirs, sItem .. " dir" )
else
if sItem == .. "." .. then
table.insert( tFiles, sItem )
else
table.insert( tFiles, sItem .. ".exe")
end
end
If I haven't said enough then feel free to ask me…
Also if it's not a symbol and it's a function or something I'll use that as well