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

add FileExistsIn func #216

Merged
merged 4 commits into from
Jul 31, 2023

Conversation

dogancanbakir
Copy link
Member

Closes #212.

Note: This isn't an exact implementation. For example, the allowedPaths is mandatory; otherwise, the func will always return false. Another one, instead of creating a list of a simplified list of paths, I decided to allow duplicate checks, for example, func will check for both of the following paths, {"/home/user/file1.txt", "home/user/file2.txt"}.

@Mzack9999 Mzack9999 added the Type: Enhancement Most issues will probably ask for additions or changes. label Jul 23, 2023
@Mzack9999 Mzack9999 merged commit 2f541e0 into projectdiscovery:main Jul 31, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

file helper function that ckecks if a path (with filename) exists in a list of given folders
2 participants