add directory and puts folder in files