MCPcopy Create free account
hub / github.com/demoth/jake2 / ListFiles

Method ListFiles

qcommon/src/main/java/jake2/qcommon/filesystem/FS.java:672–685  ·  view source on GitHub ↗
(String findname, int musthave, int canthave)

Source from the content-addressed store, hash-verified

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

Callers 2

Dir_fMethod · 0.95

Calls 1

FindAllMethod · 0.95

Tested by

no test coverage detected