MCPcopy Create free account
hub / github.com/FongMi/TV / sort

Method sort

catvod/src/main/java/com/github/catvod/utils/Path.java:219–225  ·  view source on GitHub ↗
(File[] files)

Source from the content-addressed store, hash-verified

217 }
218
219 public static void sort(File[] files) {
220 Arrays.sort(files, (o1, o2) -> {
221 if (o1.isDirectory() && o2.isFile()) return -1;
222 if (o1.isFile() && o2.isDirectory()) return 1;
223 return o1.getName().toLowerCase().compareTo(o2.getName().toLowerCase());
224 });
225 }
226
227 public static List<File> list(File dir) {
228 File[] files = dir.listFiles();

Callers 8

listMethod · 0.95
EeFunction · 0.45
cheerio.min.jsFile · 0.45
meFunction · 0.45
cat.jsFile · 0.45
KrFunction · 0.45
wsFunction · 0.45
addAllMethod · 0.45

Calls 2

compareToMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected