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

Attributes for files and directories that must not exist. #230

Merged
merged 1 commit into from
May 9, 2019

Conversation

IanG
Copy link
Contributor

@IanG IanG commented May 5, 2019

Hi Nate,

as promised in the issues log in your repo I've added some new DataNotations/Attributes that allow you to specify that files or directories must not exist (Along with tests).

You can use these like so:

File:

[FileNotExists]
public string File { get; }

Directory:

[DirectoryNotExists]
public string Dir { get; }

Either:

[FileOrDirectoryNotExists]
public string Path { get; }

Maybe they are useful ?

@IanG IanG requested a review from natemcmaster as a code owner May 5, 2019 15:41
@natemcmaster natemcmaster added this to the 2.3.5 milestone May 9, 2019
@natemcmaster
Copy link
Owner

Looks great! Thanks for the contribution!

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

Successfully merging this pull request may close these issues.

2 participants