FMB/src/forgemodpackbuilder/VerzeichnisDurchsuchen3.java
2016-10-17 06:30:35 +02:00

28 lines
712 B
Java

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package forgemodpackbuilder;
/**
*
* @author simonr
*/
import java.io.File;
public class VerzeichnisDurchsuchen3 {
public static void main(String[] args) {
File f = new File("./modpack/" + GUI.version);
File[] fileArray = f.listFiles();
if (fileArray != null) { // Erforderliche Berechtigungen etc. sind vorhanden
for (int i = 0; i < 1; i++) {
System.out.println(fileArray[0]);
GUI.datei = fileArray[0].toString();
}
}
}
}