| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Co-Authored-By: Steve Lee <slee@microsoft.com> Co-Authored-By: Ilya <darpa@yandex.ru>
| { | ||
| string errorMessage = UnblockFileStrings.LinuxNotSupported; | ||
| Exception e = new NotImplementedException(errorMessage); | ||
| ThrowTerminatingError(new ErrorRecord(e, "LinuxNotSupported", ErrorCategory.NotImplemented, null)); |
There was a problem hiding this comment.
Please use named parameters.
Sorry, something went wrong.
| { | ||
| if(IsBlocked(path)) | ||
| { | ||
| UInt32 result = RemoveXattr(path,MacBlockAttribute,RemovexattrFollowSymLink); |
There was a problem hiding this comment.
nit: spaces after ,
Sorry, something went wrong.
| { | ||
| string errorMessage = string.Format(CultureInfo.CurrentUICulture, UnblockFileStrings.UnblockError, path); | ||
| Exception e = new InvalidOperationException(errorMessage); | ||
| WriteError(new ErrorRecord(e, "UnblockError", ErrorCategory.InvalidResult,path)); |
There was a problem hiding this comment.
nit: spaces after ,
Sorry, something went wrong.
| if(result != 0) | ||
| { | ||
| string errorMessage = string.Format(CultureInfo.CurrentUICulture, UnblockFileStrings.UnblockError, path); | ||
| Exception e = new InvalidOperationException(errorMessage); |
There was a problem hiding this comment.
maybe this should be System.PlatformNotSupportedException
Sorry, something went wrong.
There was a problem hiding this comment.
definitely not, we are on a supported platform here.
Sorry, something went wrong.
There was a problem hiding this comment.
maybe you meant line 142... changed it there.
Sorry, something went wrong.
|
🎉v7.0.0-rc.1 has been released which incorporates this pull request.:tada: Handy links: |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
Add Unblock-File for macOS
PR Context
Adds a viable workaround for #10874, not just for our package but for other packages.
PR Checklist