getting file to not be a folder.