in FSBrowser.ino Line 195 sets isDir false bool isDir = false; then a test in line 197 tests the state of isDir which will always be false output += (isDir) ? "dir" : "file" Nowhere is the value of isDir changed, so this code has an error.