-
Notifications
You must be signed in to change notification settings - Fork 266
Closed
Labels
state: in workIssues that are currently worked onIssues that are currently worked ontype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality
Description
Please consider the following code:
var fileSystem = new MockFileSystem(); var path = XFS.Path("C:\\test.txt"); DirectoryInfoBase dir = fileSystem.Directory.GetParent(path);
It works ok on Windows but throws NullReferenceException on Linux. I believe this is a bug.
As a workaround, one may add an intermediate folder to the path. fileSystem.Directory.GetParent("c:\\temp\\test.txt");
gonna work ok.
Metadata
Metadata
Assignees
Labels
state: in workIssues that are currently worked onIssues that are currently worked ontype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality