OSDN Git Service
(root)
/
armadillo
/
armadillo1.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add new source files
[armadillo/armadillo1.git]
/
src
/
jp
/
sfjp
/
armadillo
/
file
/
Find.java
1
package jp.sfjp.armadillo.file;
2
3
import java.io.*;
4
5
public final class Find {
6
7
public static void find(File root, FindAction action) {
8
action.act(root);
9
if (root.isDirectory()) {
10
File[] children = root.listFiles();
11
if (children == null)
12
return;
13
for (final File child : children)
14
find(child, action);
15
}
16
}
17
18
}