Trick for allowing only one file in a directory