rename/delete of sketches works again.. other ide tweakies

This commit is contained in:
benfry
2005-02-05 17:41:59 +00:00
parent fd431251da
commit 00f8d3821c
6 changed files with 78 additions and 29 deletions

View File

@@ -88,7 +88,6 @@ public class PdeBase {
public PdeBase() {
// figure out which operating system
// this has to be first, since editor needs to know
@@ -796,8 +795,10 @@ public class PdeBase {
static public int calcFolderSize(File folder) {
int size = 0;
//System.out.println("calcFolderSize " + folder);
String files[] = folder.list();
// null if folder doesn't exist, happens when deleting sketch
if (files == null) return -1;
for (int i = 0; i < files.length; i++) {
if (files[i].equals(".") || (files[i].equals("..")) ||
files[i].equals(".DS_Store")) continue;