(File targ, PrintStream ps)
| 443 | |
| 444 | |
| 445 | void sendFile(File targ, PrintStream ps) throws IOException { |
| 446 | InputStream is = null; |
| 447 | ps.write(EOL); |
| 448 | if (targ.isDirectory()) { |
| 449 | listDirectory(targ, ps); |
| 450 | return; |
| 451 | } else { |
| 452 | is = new FileInputStream(targ.getAbsolutePath()); |
| 453 | } |
| 454 | sendFile(is, ps); |
| 455 | } |
| 456 | |
| 457 | |
| 458 | void sendFile(InputStream is, PrintStream ps) throws IOException { |
no test coverage detected