asaskevich / govalidator

[Go] Package of validators and sanitizers for strings, numerics, slices and structs
MIT License
6.05k stars 555 forks source link

isFilePath returns false/unknown for relative path #278

Open deviantony opened 6 years ago

deviantony commented 6 years ago

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:

Is it a bug or the expected behavior?

hgl commented 4 years ago

Same question.

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

romberli commented 3 years ago

any news?

sergeyglazyrindev commented 3 years ago

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.