Skip to content

Commit ef7430c

Browse files
committed
[Feature] Return DirectoryInfo for links w/o resolving target
1 parent 41794ba commit ef7430c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/System.Management.Automation/namespaces/FileSystemProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ private FileSystemInfo GetFileSystemItem(string path, ref bool isContainer, bool
12741274
{
12751275
s_tracer.WriteLine("Got directory info: {0}", result);
12761276

1277-
return result.Directory;
1277+
return new DirectoryInfo(path);
12781278
}
12791279
}
12801280
return null;

0 commit comments

Comments
 (0)