Skip to content

Commit

Permalink
don't set executable if directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-ward committed Jul 2, 2024
1 parent 027f2c2 commit 680adb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

###[Unreleased]

### Fixed
- don't include excutable dirs in file byte count

## [2024.2]
### Added
- Always follow links. Color link and link origin separately
Expand Down
2 changes: 1 addition & 1 deletion lsv/entry.v
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn make_entry(file string, dir_name string, args Args) Entry {
is_socket := filetype == .socket
is_character_device := filetype == .character_device
is_unknown := filetype == .unknown
is_exe := is_executable(stat)
is_exe := !is_dir && is_executable(stat)
is_file := !is_dir && !is_fifo && !is_block && !is_socket && !is_character_device && !is_unknown
&& !is_exe && !invalid
indicator := if is_dir && args.dir_indicator { '/' } else { '' }
Expand Down

0 comments on commit 680adb7

Please sign in to comment.