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

isFilePath returns false/unknown for relative path #278

Open
deviantony opened this issue May 25, 2018 · 3 comments
Open

isFilePath returns false/unknown for relative path #278

deviantony opened this issue May 25, 2018 · 3 comments

Comments

@deviantony
Copy link

Heya, playing around with govalidator recently I wanted to validate some input for a relative path, it seems that the isFilePath function only valides absolute paths?

E.g:

  • isFilePath("relative_file_path") => false, 0
  • isFilePath("./relative_file_path") => false, 0

Is it a bug or the expected behavior?

@hgl
Copy link

hgl commented Apr 9, 2020

Same question.

Ideally another function that tests both absolute or relative paths could be provided.

@romberli
Copy link

any news?

asaskevich added a commit that referenced this issue Mar 7, 2021
Feature: absolute and relative file path validator functions for Unix & Windows #278
@sergeyglazyrindev
Copy link

Hello guys!
I forked this package cause owner disappeared. Hope, he will be back, but it would be easier to merge these changes back if he is back
Link to my repo: create issue there and we'll discuss it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants