diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-20 20:49:33 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-20 21:11:50 +0900 |
| commit | b15166490944e90c083c93086e849656535494e3 (patch) | |
| tree | 4a517d8284b5d1574072c1098b8f0c3109cf12cd /crates/shirabe/src/command/create_project_command.rs | |
| parent | a5ebca8f7001351aa26443a4a02a71c96190eccb (diff) | |
| download | php-shirabe-b15166490944e90c083c93086e849656535494e3.tar.gz php-shirabe-b15166490944e90c083c93086e849656535494e3.tar.zst php-shirabe-b15166490944e90c083c93086e849656535494e3.zip | |
fix(path): propagate PathBuf
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/command/create_project_command.rs')
| -rw-r--r-- | crates/shirabe/src/command/create_project_command.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/shirabe/src/command/create_project_command.rs b/crates/shirabe/src/command/create_project_command.rs index c3c82d4..8432040 100644 --- a/crates/shirabe/src/command/create_project_command.rs +++ b/crates/shirabe/src/command/create_project_command.rs @@ -14,6 +14,7 @@ use shirabe_php_shim::{ is_dir, is_file, mkdir, realpath, rtrim, strtolower, unlink, }; use std::cell::RefCell; +use std::path::PathBuf; use std::rc::Rc; use crate::advisory::AuditConfig; @@ -559,14 +560,14 @@ impl CreateProjectCommand { } // PHP: try { $dirs = iterator_to_array($finder); ... } catch (\Exception $e) { ... } - let dirs: Vec<String> = finder.iter().map(|f| f.get_pathname()).collect(); + let dirs: Vec<PathBuf> = finder.iter().collect(); drop(finder); let mut had_error: Option<anyhow::Error> = None; for dir in &dirs { if !fs.remove_directory(dir)? { had_error = Some( RuntimeException { - message: format!("Could not remove {}", dir), + message: format!("Could not remove {}", dir.display()), code: 0, } .into(), |
