Create parent directory if not exists while visiting file