replace file with directory
