Skip to content

Commit

Permalink
Show relative path when default-listing the current directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dmulholl committed Nov 12, 2023
1 parent edbf372 commit c3e0b9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "vimv"
version = "3.0.0"
version = "3.1.0"
authors = ["Darren Mulholland <dmulholl@tcd.ie>"]
edition = "2021"
description = "A command line utility for batch-renaming files using a text editor."
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Usage: vimv [files]
Use the --force flag to overwrite existing files that aren't part of a
renaming cycle. (Existing directories are never overwritten. If you attempt
to overwrite a directory the program will exit with an error message and a
to overwrite a directory, the program will exit with an error message and a
non-zero status code.)
You can delete a file or directory by prefixing its name with a `#` symbol.
Expand Down Expand Up @@ -88,7 +88,7 @@ fn main() {
eprintln!("error: failed to read current directory entry: {}", err);
exit(1);
});
let entry_as_string = entry.path().into_os_string().into_string().unwrap_or_else(|err| {
let entry_as_string = entry.file_name().into_string().unwrap_or_else(|err| {
eprintln!("error: failed to decode current directory entry name: {:?}", err);
exit(1);
});
Expand Down

0 comments on commit c3e0b9f

Please sign in to comment.