Nochmal Bugfix zum Loader.
This commit is contained in:
parent
0a43ff0d05
commit
8b7392ed64
@ -48,7 +48,11 @@ public class CodeEnvironment {
|
|||||||
if(f.isDirectory()) {
|
if(f.isDirectory()) {
|
||||||
String[] filesInDirectory = CodeEnvironment.getFileListFromFolder(f);
|
String[] filesInDirectory = CodeEnvironment.getFileListFromFolder(f);
|
||||||
for(String entry : filesInDirectory) {
|
for(String entry : filesInDirectory) {
|
||||||
fileList.add(entry.replace(rootPath, ""));
|
if(entry.contains(rootPath)) {
|
||||||
|
fileList.add(entry.substring(rootPath.length()));
|
||||||
|
} else {
|
||||||
|
fileList.add(entry);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fileList.add(f.toString());
|
fileList.add(f.toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user