This will fail if there are files inside the directory.