flist("") //returns files in the current directory
flist("./") //returns files in the current directory
flist(".") //returns nothing
In both Linux and Windows file systems, . is the folder you are currently in.
Per the reference:
The path is of the form "dir1/dir2/.../file". Only files beginning with the "file" part are listed, so be sure to end a directory name with "/" if you wish to see its contents. Otherwise you will just get that directory name back with a "/" appended.
So, the behavior for "./" is correct. I guess the behavior for "" is something.
But, it seems (per the reference) like "." is supposed to return the name of the folder, and ".." would return the name of the folder above it.
I dunno if there's any way currently to find the name of the folder you're in, other than shell stuff, but this would be good, and the current behavior for "." and ".." seems contradictory to the reference. (or am I just assuming too much?)
not sure if bug, or feature request.
While this is an easy fix, I am concerned about the small chance it could break compatibility in games that use flist() to navigate down a directory tree (although off the top of my head, it's hard to see one doing this with the "buggy" notation). We'll decide if it's better to fix or to simply omit that last line from the notation. I do see the argument that a fix is useful since it would allow access to the cwd name, which is what you want.