changed dir to file