sbool directoryIsEmpty(File f) { ret !fileExists(f) || isDirectory(f) && empty(listFiles(f)); }