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