Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleMake a function which takes the prefix and sees if the filename starts with it

So now we make a function to determine if the file name matches

Code Block
languagelua
function APPmatchPrefix(Prefix, FileName)
   local Part = FileName:sub(1, #Prefix)
   trace(Part, Prefix)
   return (Part == Prefix)
end

And we’ll call it as part of the MatchFile routine. You will need to type in the line as part of Match file to call APPmatchPrefix:

Concepts used:

...