function mkFullDir(dirObj) {
        //1 is DIRECTORY_TYPE, 511 is 0777 permissions
        if (!dirObj.exists()) {
            dirObj.create(1, 511);
        }
    }
Deletes any empty directories under the given directory.
The startDirIsJavaObject is private to this implementation's
recursion needs.