Skip to content

Commit

Permalink
ghoulsblade#23 Minor fix to filesystem enumeration
Browse files Browse the repository at this point in the history
  • Loading branch information
campadrenalin committed May 12, 2013
1 parent 65b85c4 commit ef4ba01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/love.filesystem.js
Expand Up @@ -43,7 +43,7 @@ function LoveFileList (url) {
// Returns a table with the names of files and subdirectories in the directory in an undefined order.
// example: "dira" contains 1 file (a.txt) and 2 subdirs (diraa,dirab) : love.filesystem.enumerate("dira") (="dira/") = {"a.txt","diraa","dirab"}
function LoveFilesystemEnumerate (path) {
if (!gFilesystemEnumerateList) return NotImplemented(pre+'enumerate (try index.html body onload : LoveFileList("filelist.txt") from "find . > filelist.txt")');
if (!gFilesystemEnumerateList) return NotImplemented('love.filesystem.enumerate (try index.html body onload : LoveFileList("filelist.txt") from "find . > filelist.txt")');
var res = {};
if (path.substring(path.length - 1) == "/") path = path.substring(0,path.length - 1); // remove trailing /
path = LoveFSNormalizePath(path);
Expand Down

0 comments on commit ef4ba01

Please sign in to comment.