Skip to content
New issue

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

regfilesin fault #158

Open
skaller opened this issue Oct 12, 2020 · 0 comments
Open

regfilesin fault #158

skaller opened this issue Oct 12, 2020 · 0 comments
Assignees
Labels

Comments

@skaller
Copy link
Member

skaller commented Oct 12, 2020

in FileSystem there is a function like regfilesin that by contract scans all regular files in a directory tree and returns those whose pathname matches a given regexp. Whilst files not marked regular are correctly ignored symlinks to directories are processed. This can lead to an infinite loop. Symlinks to directories must be ignored too. This ensures termination provided hardlinks don't contain cycles. On some OS (MacOS and Linux I think) you cannot create a hard link to a directory, which ensures the graph is acyclic.

@skaller skaller added the bug label Oct 12, 2020
@skaller skaller self-assigned this Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant