private void cleanupRoot(File dir) { if (!dir.isDirectory()) { return; } File[] children = dir.listFiles(); for (int i = 0; i < children.length; i++) { File child = children[i]; if ((child != null) && child.isFile() && (m_access_cache.get(child.toString()) == null)) { CUtils.LOGD(TAG, "delete: " + child); child.delete(); } } }