File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ ls-error-unknown-io-error = unknown io error: {$path}, '{$error}'
2323ls-error-invalid-block-size = invalid --block-size argument { $size }
2424ls-error-dired-and-zero-incompatible = --dired and --zero are incompatible
2525ls-error-not-listing-already-listed = { $path } : not listing already-listed directory
26+ ls-error-not-directory = { $path } : A path component was not a directory
2627ls-error-invalid-time-style = invalid --time-style argument { $style }
2728 Possible values are:
2829 - [posix-]full-iso
Original file line number Diff line number Diff line change @@ -186,6 +186,7 @@ enum LsError {
186186
187187 #[ error( "{}" , match . 1 . kind( ) {
188188 ErrorKind :: NotFound => translate!( "ls-error-cannot-access-no-such-file" , "path" => . 0 . quote( ) ) ,
189+ ErrorKind :: NotADirectory => translate!( "ls-error-not-directory" , "path" => . 0 . quote( ) ) ,
189190 ErrorKind :: PermissionDenied => match . 1 . raw_os_error( ) . unwrap_or( 1 ) {
190191 1 => translate!( "ls-error-cannot-access-operation-not-permitted" , "path" => . 0 . quote( ) ) ,
191192 _ => if . 0 . is_dir( ) {
You can’t perform that action at this time.
0 commit comments