Skip to content

FeatureComplete: handle symlinks  #12

Closed

Description

@mcharsley

This involves handling -H, -L and finishing find::matchers::type_matcher.

Take a look at https://github.com/BurntSushi/walkdir/blob/master/examples/walkdir.rs for hints on how to handle -L with walkdir and https://github.com/BurntSushi/walkdir/blob/master/src/tests.rs on how to test interaction with symlinks on both unix and windows machines

Activity

  1. tavianator commented on Mar 28, 2021

    @tavianator
    Contributor

    Note that the current behaviour seems to be -H (follow top-level links), not -P (never follow links):

    $ ln -s / link
    $ find link
    link
    $ ./target/debug/find link
    link
    link/var
    link/var/cache
    link/var/cache/pacman
    link/var/cache/pacman/pkg
    ...
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions