(String findname, int musthave, int canthave)
| 670 | * ListFiles |
| 671 | */ |
| 672 | public static String[] ListFiles(String findname, int musthave, int canthave) { |
| 673 | String[] list = null; |
| 674 | |
| 675 | File[] files = Sys.FindAll(findname, musthave, canthave); |
| 676 | |
| 677 | if (files != null) { |
| 678 | list = new String[files.length]; |
| 679 | for (int i = 0; i < files.length; i++) { |
| 680 | list[i] = files[i].getPath(); |
| 681 | } |
| 682 | } |
| 683 | |
| 684 | return list; |
| 685 | } |
| 686 | |
| 687 | /** |
| 688 | * dir command as in MS-DOS - shows contents of the directory |
no test coverage detected