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

Path, file directory #10

Closed
samuelcolvin opened this Issue May 10, 2017 · 2 comments

Comments

2 participants
@samuelcolvin
Owner

samuelcolvin commented May 10, 2017

Allow paths, files and directories, check existence.

@samuelcolvin

This comment has been minimized.

Owner

samuelcolvin commented Jun 20, 2018

Needs:

  • FilePath - path to a file with exists
  • DirectoryPath - path to a directory which exists

Anything else (eg. FileInExistingDirectoryPath, or FileOrDirectoryPath) is probably overcomplicated and can be implemented via validators.

Gr1N added a commit to Gr1N/pydantic that referenced this issue Jun 23, 2018

Gr1N added a commit to Gr1N/pydantic that referenced this issue Jun 24, 2018

samuelcolvin added a commit that referenced this issue Jun 28, 2018

add ``FilePath`` and ``DirectoryPath`` types #10 (#208)
* add ``FilePath`` and ``DirectoryPath`` types #10

* review fixes

* improve tests

* simplify errors
@Gr1N

This comment has been minimized.

Collaborator

Gr1N commented Jun 28, 2018

@samuelcolvin can we close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment