Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#19 Cannot open a Directory with a depth > 1

open
nobody
None
5
2008-11-25
2008-11-25
James Walmsley
No

fs->FirstClusterCurrentDir field never gets updated by anything!

ls_opendir() should open a directory specified by its entire path, but it doesn't!

That means that fs_findFile() cannot open directories that don't reside in the root directory.

Its pointless fixing this bug, because its 100% not thread safe! It would be impossible to ls through directories by setting this value correctly somewhere in a multi-user or multi-threaded environment.

The only proper way around this is to make sure fs_findFile() interprets the entire directory path.

Discussion