Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transformer: トランスフォーム後に地物が存在しない場合のエラーハンドリング #638

Open
satoshi7190 opened this issue Sep 2, 2024 · 0 comments
Assignees

Comments

@satoshi7190
Copy link
Contributor

satoshi7190 commented Sep 2, 2024

  • エラー時に出力フォルダが生成されてしまう。

src/main.rs

// If the directory for the output path does not exist, create it
      if let Some(output_parent_dir) = PathBuf::from(&args.output).parent() {
          if !output_parent_dir.exists() {
              if std::fs::create_dir_all(output_parent_dir).is_err() {
                  log::error!("Failed to create output directory: {:?}", output_parent_dir);
                  return ExitCode::FAILURE;
              };
              log::info!("Created output directory: {:?}", output_parent_dir);
          }
      }
@satoshi7190 satoshi7190 self-assigned this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant