Skip to content

Remove IsSymLink() P/Invoke on Unix - #9534

Merged
Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
iSazonov:cleanup-pinvoke-issymlink
May 7, 2019
Merged

Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
iSazonov:cleanup-pinvoke-issymlink

Conversation

@iSazonov

@iSazonov Ilya (iSazonov) commented May 4, 2019 •

Copy link
Copy Markdown
Collaborator

PR Summary

PR Context

PR Checklist

@iSazonov Ilya (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 Ilya (iSazonov) added this to the 7.0.0-preview.1 milestone May 4, 2019

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 Travis Plunk (TravisEz13) changed the title Cleanup: Remove IsSymLink() P/Invoke on Unix Remove IsSymLink() P/Invoke on Unix May 7, 2019
@TravisEz13
Travis Plunk (TravisEz13) merged commit 8bd16d1 into PowerShell:master May 7, 2019
@iSazonov
Ilya (iSazonov) deleted the cleanup-pinvoke-issymlink branch May 8, 2019 03:36
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
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