Hallo eine Kurze Frage. Sobald meine Methode in einem Speziellen Ordner (Spiele Ordner von Steam) einen Ordner erstellen will bricht er ab. Hier der Code zum erstellen des Ordners.
Frage hier zu gibt es eine Möglichkeit dem Programm mehr Rechte zu geben?
Frage hier zu gibt es eine Möglichkeit dem Programm mehr Rechte zu geben?
Code:
if (aFile.isDirectory()) {
// create the directory in saveDir
File newDir = new File(newDirPath);
boolean created = newDir.mkdirs();
if (created) {
System.out.println("CREATED the directory: " + newDirPath);
} else {
System.out.println("COULD NOT create the directory: " + newDirPath);
}
// download the sub directory
downloadDirectory(ftpClient, dirToList, currentFileName, saveDir);
} else {
// download the file
boolean success = downloadSingleFile(ftpClient, filePath, newDirPath);
if (success) {
System.out.println("DOWNLOADED the file: " + filePath);
} else {
System.out.println("COULD NOT download the file: " + filePath);
}
}