Review internal tree traversal of symlinks
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- clojure
- Domain
- operating-systems
Research direction
Start with the internal file-seq and proposed path-seq traversal, then inspect their use by modified-since and zip. Resolve whether symbolic links should be ignored or controlled by a :follow-links option, including circular trees. Done means the behavior is agreed and affected functions have coverage for the chosen policy.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Clojure
- Stars
- 221
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from babashka/fs
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
`copy-tree`, when following links, does not copy contents of symbolicly linked sub-dirPossibly taken @shivampwm2020 claimed this 51 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nextjournal/clerk#830 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
IOP tokens release blocker team qa team qa autotests WG adoption
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
penpot/penpot#13540 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
izhangzhihao/intellij-rainbow-brackets#2903 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100