We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
location
let search: Vec<String> = SearchBuilder::default() .location("/System/") .search_input("Syste") .depth(1) .ignore_case() .build() .collect();
This will return everything contained in /System/ directory because the Regex will be matched with the path input i.e /System/ and return everything.
/System/
This could be solved by adding: .split("/").last().unwrap() to path
.split("/").last().unwrap()
path
reg_exp.is_match(&path.split("/").last().unwrap())
@TheAwiteb , Is there a better way to do this? Or are there any implications using this approach ?
The text was updated successfully, but these errors were encountered:
Yes, we can use Path::file_name. Assign it to me, i'll solve it
Path::file_name
Sorry, something went wrong.
Okay @TheAwiteb , Thanks a lot
Fix ParthJadhav#20
edfbf8d
TheAwiteb
Successfully merging a pull request may close this issue.
This will return everything contained in
/System/
directory because the Regex will be matched with the path input i.e /System/ and return everything.This could be solved by adding:
.split("/").last().unwrap()
topath
@TheAwiteb , Is there a better way to do this? Or are there any implications using this approach ?
The text was updated successfully, but these errors were encountered: