Skip to content

Commit

Permalink
Honor config.ignore_symlinks when walking the directory trees
Browse files Browse the repository at this point in the history
  • Loading branch information
ngirard committed May 18, 2020
1 parent f876603 commit ca8e0bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [0.6.1] - 2020-05-18

### Fixed

- Honor config.ignore_symlinks when walking the directory trees (thanks to [BartMassey](https://github.com/BartMassey))

## [0.6.0] – 2020-05-16

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lolcate-rs"
version = "0.6.0"
version = "0.6.1"
description = "A comically fast way of indexing and querying your filesystem. Replaces locate / mlocate / updatedb."
documentation = "https://github.com/ngirard/lolcate-rs/blob/master/README.md"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ pub fn walker(config: &config::Config, database: &str) -> ignore::Walk {
let mut wd = ignore::WalkBuilder::new(&paths[0]);
wd.hidden(config.ignore_hidden) // Whether to ignore hidden files
.parents(false) // Don't read ignore files from parent directories
.follow_links(true) // Follow symbolic links
.follow_links(!config.ignore_symlinks) // Follow symbolic links
.ignore(true) // Don't read .ignore files
.git_global(config.gitignore) // Don't read global gitignore file
.git_ignore(config.gitignore) // Don't read .gitignore files
Expand Down

0 comments on commit ca8e0bd

Please sign in to comment.