checking if directory is empty and show warning before creating a swamp