Use .Net Core File.Delete() method to remove symbolic links and alternate streams (#7017)

.Net Core support processing symbolic links and alternate streams, and thus we can remove our P/Invoke code.
This commit is contained in:
Ilya authored and Dongbo Wang committed 2018-07-01 00:08:28 -07:00
1 parent d04fef469b
commit 0a3555064a
5 files changed
+15 -137

No files matched your search

@@ -242,6 +242,8 @@ Describe "New-Item with links" -Tags @('CI', 'RequireAdminOnWindows') {
# Remove the link explicitly to avoid broken symlink issue
Remove-Item $FullyQualifiedLink -Force
# Test a code path removing a symbolic link (reparse point)
Test-Path $FullyQualifiedLink | Should -BeFalse
}
It "New-Item -ItemType SymbolicLink should understand directory path ending with slash" {