8000 Remove `IsSymLink()` P/Invoke on Unix by iSazonov · Pull Request #9534 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Remove IsSymLink() P/Invoke on Unix#9534

Merged
TravisEz13 merged 1 commit intoPowerShell:masterfrom
iSazonov:cleanup-pinvoke-issymlink
May 7, 2019
Merged

Remove IsSymLink() P/Invoke on Unix#9534
TravisEz13 merged 1 commit intoPowerShell:masterfrom
iSazonov:cleanup-pinvoke-issymlink

Conversation

@iSazonov
Copy link
Collaborator
@iSazonov iSazonov commented May 4, 2019

PR Summary

PR Context

PR Checklist

@iSazonov iSazonov added the CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log label May 4, 2019
@iSazonov iSazonov added this to the 7.0.0-preview.1 milestone May 4, 2019
@iSazonov iSazonov requested review from BrucePay and anmenaga as code owners May 4, 2019 17:20

internal static bool NonWindowsIsSymLink(FileSystemInfo fileInfo)
{
return Unix.NativeMethods.IsSymLink(fileInfo.FullName);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a comment to the native code as to when this call was removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could but I don't understand why we need this - in last days we removed some P/Invokes
and earlier a few more without such comments. Perhaps it is more useful to open a tracking issue in PowerShell Native repo.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A tracking issue would work, but the issue is likely to be open for a long time.

@TravisEz13 TravisEz13 changed the title Cleanup: Remove IsSymLink() P/Invoke on Unix Remove IsSymLink() P/Invoke on Unix May 7, 2019
@TravisEz13 TravisEz13 merged commit 8bd16d1 into PowerShell:master May 7, 2019
@iSazonov iSazonov deleted the cleanup-pinvoke-issymlink branch May 8, 2019 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0