Contents

init(validating:)

On Unix, creates the string "/"

Declaration

init?(validating root: FilePath.Root)

Parameters

  • root:

    The path root to be interpreted as CInterop.PlatformUnicodeEncoding.

Discussion

On Windows, creates a string from a path root, validating its contents as UTF-16 on Windows.

On Windows, if the contents of the path root isn’t a well-formed Unicode string, this initializer returns nil.