fix for calc folder size goodness

This commit is contained in:
benfry
2004-07-12 22:15:04 +00:00
parent a90ed095c3
commit e9436e24d4
2 changed files with 7 additions and 5 deletions

View File

@@ -985,7 +985,8 @@ public class PdeSketch {
}
// if 'data' folder is large, set to external runtime
if (PdeBase.calcFolderSize(dataFolder) > 768 * 1024) { // if > 768k
if (dataFolder.exists() &&
PdeBase.calcFolderSize(dataFolder) > 768 * 1024) { // if > 768k
externalRuntime = true;
}