Expand the parent directory after creating a file.