Show More
@@ -61,11 +61,17 b" fn display_files<'a>(" | |||
|
61 | 61 | |
|
62 | 62 | let mut stdout = ui.stdout_buffer(); |
|
63 | 63 | |
|
64 | let mut any = false; | |
|
64 | 65 | for file in files { |
|
66 | any = true; | |
|
65 | 67 | let file = working_directory.join(file); |
|
66 | 68 | stdout.write_all(relativize_path(&file, &cwd).as_ref())?; |
|
67 | 69 | stdout.write_all(b"\n")?; |
|
68 | 70 | } |
|
69 | 71 | stdout.flush()?; |
|
70 | Ok(()) | |
|
72 | if any { | |
|
73 | Ok(()) | |
|
74 | } else { | |
|
75 | Err(CommandError::Unsuccessful) | |
|
76 | } | |
|
71 | 77 | } |
General Comments 0
You need to be logged in to leave comments.
Login now