directory was being created always (it should only be created if there are files to be placed in there).