Files
sourcekit-lsp/Sources/SKSupport/Path.swift
Ben Langmuir 7124a0a3a7 [build] Fix warnings about Foundation.Process on Linux
launchPath and launch are deprecated. Use exectuableURL and run() when
available.
2018-12-01 23:07:39 -08:00

22 lines
729 B
Swift

//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
import Basic
import Foundation
extension AbsolutePath {
/// File URL created from the normalized string representation of the path.
public var asURL: URL {
return URL(fileURLWithPath: asString)
}
}