MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / goUp

Method goUp

Minecraft-Utils/1.10/src/FileSelector.java:56–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 }
55
56 @Override
57 public void goUp() {
58 if (currentDir == null)
59 return;
60 File parent = currentDir.getParentFile();
61 if (parent == null) {
62 currentDir = null;
63 files.clear();
64 File[] a = File.listRoots();
65 if (a == null)
66 return;
67 for (File file : a) {
68 if (!fsv.isDrive(file) || fsv.getSystemDisplayName(file).isEmpty())
69 continue;
70 files.add(file);
71 }
72 selectedFile = files.isEmpty() ? -1 : 0;
73 return;
74 }
75 updateDir(parent);
76 }
77
78 @Override
79 public void updateDir(File dir) {

Callers

nothing calls this directly

Calls 4

updateDirMethod · 0.95
isEmptyMethod · 0.80
clearMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected