Closed SoresViktor closed 1 year ago
Here, on line 35, I think it should be file_type, not path: https://github.com/assert-rs/predicates-rs/blob/8204e4496cd23358fae6a15ac04aa742e25242ab/src/path/ft.rs#L25-L39 Path::is_file always follows symlinks and will return true if the symlink points to a regular file.
file_type
path
This is probably the root cause of assert-rs/assert_fs#70.
Thanks for catching that!
Wow, fastest fix ever.
Here, on line 35, I think it should be
file_type
, notpath
: https://github.com/assert-rs/predicates-rs/blob/8204e4496cd23358fae6a15ac04aa742e25242ab/src/path/ft.rs#L25-L39 Path::is_file always follows symlinks and will return true if the symlink points to a regular file.This is probably the root cause of assert-rs/assert_fs#70.