All submissions to this site are governed by the Second Life Viewer Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.

Review Board 1.6.11

Welcome to the Second Life Viewer Code Review tool.
See the documentation on our wiki for how to use this site.

(STORM-550) LLDir::getNextFileInDir fails for some complex wildcard combinations

Review Request #32 - Created Dec. 17, 2010 and submitted

Seth ProductEngine Reviewers
viewer
STORM-477
None viewer-development
- Re-implemented LLDir::getNextFileInDir() as an iterator object.
- Added a class implementing directory entries iteration with pattern matching which is used in unit tests instead of LLDir::getNextFileInDir.
- Fixed LLDir unit test which failed for some complex wildcard combinations.
- Replaced all existing usages of LLDir::getNextFileInDir() with the new directory iterator object.
- Removed platform specific LLDir::getNextFileInDir() implementation.

 
Review request changed
Updated (Jan. 11, 2011, 8:27 a.m.)
  • Fixed LLDir unit test which failed for some complex wildcard combinations.
    Added a class implementing directory entries iteration with pattern matching which is used in unit tests instead of LLDir::getNextFileInDir.
    
    This code has been run on Linux only. It should be tested under other platforms and more test cases should be provided. For example changing directory contents while iterating through it.

    - Re-implemented LLDir::getNextFileInDir() as an iterator object.
    - Added a class implementing directory entries iteration with pattern matching which is used in unit tests instead of LLDir::getNextFileInDir.
    - Fixed LLDir unit test which failed for some complex wildcard combinations.
    - Replaced all existing usages of LLDir::getNextFileInDir() with the new directory iterator object.
    - Removed platform specific LLDir::getNextFileInDir() implementation.
- Changed llwarns with llerrs in LLDirIterator and removed 2 unit tests that started to cause llerrs.
- Replaced all existing usages of LLDir::getNextFileInDir() with the new directory iterator object.
- Removed platform specific LLDir::getNextFileInDir() implementation.
Ship it!
Posted (Jan. 11, 2011, 8:57 a.m.)
I haven't built it, but I'm presuming that since you wrote test code that it passes the tests. I love this; and it's even documented. The code looks good, and I'm really happy to have it. Thank you.