Skip to content

Updates the Mock File System to throw DirectoryNotFound if creating a… - #286

Merged
tathamoddie merged 2 commits into
TestableIO:masterfrom
wleader:master
Jul 4, 2018
Merged

tathamoddie merged 2 commits into
TestableIO:masterfrom
wleader:master

Conversation

@wleader

@wleader wleader commented May 7, 2018

Copy link
Copy Markdown
Contributor

… file in a directory that does not exist.

When creating a file in a real file system on Windows, if the filename is in a directory that does not exist, a DirectoryNotFoundException would be thrown. This change, causes the MockFile to behave in the same way.

Additionally some other tests had to be updated. These tests did not tell the mock filesystem that the directory existed before attempting the create.

… file in a directory that does not exist.

When creating a file in a real file system on Windows, if the filename is in a directory that does not exist, a DirectoryNotFoundException would be thrown. This change, causes the MockFile to behave in the same way.

Additionally some other tests had to be updated. These tests did not tell the mock filesystem that the directory existed before attempting the create.
@wleader

wleader commented May 7, 2018

Copy link
Copy Markdown
Contributor Author

This request resolves the issue #278

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

Successfully merging this pull request may close these issues.

2 participants