add a method to remove empty folder (with empty subfolder) to ResourceUtil