lune-org/lune

readDir gives different results on Windows if path contains a trailing slash

UpliftMacaw opened this issue · 0 comments

I'm getting different results from fs.readDir() depending on whether my path has a trailing slash. For example with this file tree:

top/
  parent/
    child.luau
    other_child.luau

When called from the top/ directory with fs.readDir("parent"), I get:
{"child.luau", "other_child.luau}
However, when I use fs.readDir("parent/") instead, I get:
{"parent/child.luau", "parent/other_child.luau}