#237 os.matchfiles misses matching files

4.4
open
nobody
None
5
2012-12-11
2012-01-12
Sajty
No

OS: Windows
premake version: premake 4.4 beta 3
problem: os.matchfiles misses ".gitignore" file.

code to reproduce it:
<pre>
--create tmp directory to make sure its empty
os.mkdir("tmp")
os.chdir("tmp")
local f = io.open(".gitignore", "w+")
f:write("This is a file!")
f:close()
local matches = os.matchfiles("**")
print(matches[1])

local f = io.open("normalname.txt", "w+")
f:write("This is a file!")
f:close()
local matches = os.matchfiles("**")
print(matches[1])
</pre>

output:
nil
normalname.txt

Discussion

  • Reproduced on Linux as well