- 
                Notifications
    You must be signed in to change notification settings 
- Fork 207
          Conditionalize stripping of \\?\ on it actually being present
          #974
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
  
    Conditionalize stripping of \\?\ on it actually being present
  
  #974
              Conversation
| @swift-ci Please test | 
| } else { | ||
| pathBaseAddress = UnsafePointer($0.baseAddress!) | ||
| } | ||
| return try AbsolutePath(String(decodingCString: pathBaseAddress, as: UTF16.self)) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error: cannot find 'AbsolutePath' in scope - I think we can probably just return the String(decodingCString:as:) here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, yes. Copied too much from TSC.
0c683b6    to
    79b3148      
    Compare
  
    | @swift-ci Please test | 
As far as I know `\\?\` is always returned by `GetFinalPathNameByHandleW` but it’s better to be safe and actually check instead of unconditionally trimming the first 4 characters from the returned path. See swiftlang/swift-tools-support-core#485 (comment)
79b3148    to
    49981aa      
    Compare
  
    | @swift-ci Please test | 
| @swift-ci please test | 
…tlang#974) As far as I know `\\?\` is always returned by `GetFinalPathNameByHandleW` but it’s better to be safe and actually check instead of unconditionally trimming the first 4 characters from the returned path. See swiftlang/swift-tools-support-core#485 (comment)
As far as I know
\\?\is always returned byGetFinalPathNameByHandleWbut it’s better to be safe and actually check instead of unconditionally trimming the first 4 characters from the returned path.See swiftlang/swift-tools-support-core#485 (comment)