Skip to content

Commit af2f4a5

Browse files
committed
Added debug prints
added debug prints to find problem
1 parent 1f35bfc commit af2f4a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arduino-core/src/processing/app/Sketch.java

+4
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public boolean reload() throws IOException {
106106
private List<SketchFile> listSketchFiles(boolean showWarnings) throws IOException {
107107
Set<SketchFile> result = new TreeSet<>(CODE_DOCS_COMPARATOR);
108108
for (File file : FileUtils.listFiles(folder, false, EXTENSIONS)) {
109+
System.out.println("File found: " + file.getName()); //added for debug
109110
if (BaseNoGui.isSanitaryName(FileUtils.splitFilename(file).basename)) {
110111
result.add(new SketchFile(this, file));
111112
} else if (showWarnings) {
@@ -355,9 +356,12 @@ public void saveAs(File newFolder) throws IOException {
355356

356357
// Copy the data folder (this may take a while.. add progress bar?)
357358
if (getDataFolder().exists()) {
359+
System.out.println("Data folder is found and exists.");
358360
File newDataFolder = new File(newFolder, "data");
359361
FileUtils.copy(getDataFolder(), newDataFolder);
360362
}
363+
364+
361365
}
362366

363367
/**

0 commit comments

Comments
 (0)