Analyzing Paths

  • Return a normalized absolutized version of the path.

    See also

    To work with Path or PathRepresentable, use PathRepresentable.absolutePath.

    Declaration

    Swift

    public func absolutePath(ofPath path: String) throws -> String

    Parameters

    path

    the path which is is to be absolutized.

  • Return the canonical path of the specified filename, eliminating any symbolic links encountered in the path (if they are supported by the operating system). The result is alway an absolute path.

    Throws

    System error encountered while reading link content or converting relative path to absolute path.

    See also

    To work with Path or PathRepresentable, use PathRepresentable.realPath.

    Declaration

    Swift

    public func realPath(ofPath path: String) throws -> String

    Parameters

    path

    the path to look up for.