commit | 3c81cfb499049e1a46a9d73bae50cba87dc1830c | [log] [tgz] |
---|---|---|
author | Yiding Jia <yiding@fb.com> | Wed Sep 04 13:19:44 2013 -0700 |
committer | Michael Bolin <mbolin@fb.com> | Thu Sep 19 15:05:46 2013 -0700 |
tree | 06474772dc117d751c269539d70bb082a861262e | |
parent | b29ad1ddc355fb0f0ea40072d194f1d8551846fe [diff] |
Use Files.walkFileTree in DirectoryTraversal. Summary: Replace custom traversal code with Java 7's `Files.walkFileTree`. This fixes infinite loops in the event of a symlink loop. Test Plan: Added a symlink loop to DirectoryTraversalTest and `buck test --all`. Use in a directory with symlink loops, previously it looped, now it terminates.
Buck is an Android build tool. To see what Buck can do for you, check out the documentation at http://facebook.github.io/buck/.
To build Buck, run the following:
git clone git@github.com:facebook/buck.git cd buck ant ./bin/buck --help
Apache License 2.0