System.IO.Abstractions icon indicating copy to clipboard operation
System.IO.Abstractions copied to clipboard

File.CreateSymbolicLink functionality is missing (Added in .net6.0)

Open davidrogers090 opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe. I'd like to be able to use the File.CreateSymbolicLink and Directory.CreateSymbolicLink functionality in a testable way.

Describe the solution you'd like The IFile.CreateSymbolicLink and IDirectory.CreateSymbolicLink and the default implementations available for use.

Describe alternatives you've considered I could use the old way to create symbolic links, but this is messy and difficult to test. I could invoke cmd.exe mklink, but this is not cross-platform and has serious security concerns.

Additional context Related to #789.

davidrogers090 avatar Aug 04 '22 16:08 davidrogers090

This makes a lot of sense, contributions welcome 👍

fgreinacher avatar Aug 08 '22 09:08 fgreinacher

I've begun working on this. I should be able to do a PR soon.

davidrogers090 avatar Aug 08 '22 17:08 davidrogers090

Thanks @davidrogers090! Feel free to ping me anytime for support/feedback!

fgreinacher avatar Aug 08 '22 21:08 fgreinacher

I think this is now implemented with #965...

vbreuss avatar Apr 13 '23 05:04 vbreuss