[Closed] Help with wildcards
Help a newb out plz
Everything works fine, but I need for the final part of this to search for any text +.tga
I tried texPath = textureName + “**.tga”, but that gave no love
here is the code
textureName = maxfilepath + (getFilenameFile maxfilename)
format "%
" textureName
texPath = textureName + "**.tga" -- ** because name may change per folder
Thanks for any help,
–Jon
If I understand this right, then for each folder you should build an array with your files, filterstring each element for “.” and compare the second item in the result to “tga” then collect the first.
Hope it helps!
under “String Literals”, it mentions the use of control characters inside a string… which includes your * (which is probably the cause of the error)
and yup, you could try what vasilescu_anton is saying by using the getFiles function under “External File Methods”
Thank you very much for your help. I am able to pull the files now.
Thank you.
–Jon