/filefind/java/filefind.java |
---|
48,16 → 48,9 |
base = new File(filename); |
} |
static void start_traverse(File base) |
static void start_traverse(File base, String basename) |
{ |
try |
{ |
System.out.println(base.getCanonicalPath()); |
} |
catch (IOException ie) |
{ |
System.err.println("Caught IOException: " + ie.getMessage()); |
} |
System.out.println(basename); |
traverse(base); |
} |
92,7 → 85,7 |
File base = new File(basename); |
if (base.isDirectory()) |
{ |
start_traverse(base); |
start_traverse(base, basename); |
} |
else |
{ |