mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
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:
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" {
|
||||
|
||||
Reference in new issue
Block a user