put overwrites the file if the file path already exists