Skip to content

Review internal tree traversal of symlinks #164

@lread

Description

@lread

While @borkdude was having a peek at #163 he noted that the internal file-seq (which PR replaces with internal path-seq) does not take symlinks into account.

This internal fn is used by modified-since and zip.

Option 0: Do nothing

Affected fns will navigate symbolic links in dir/file trees, potentially getting into circular behaviour.

Options 1: Never follow symbolic links

Never follow symbolic links for affected fns.
I'm guessing that this is typically what users might want?

Option 2: Optionally follow symbolic links

Like other fs fns, add a :follow-links option, default false.

Proposal

Option 2 seems to be the most flexible. Is there any issue with option 2?

Next Steps

Happy to do up a PR after path is chosen.

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