mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
18 lines
301 B
Swift
18 lines
301 B
Swift
//
|
|
// PathExtensions.swift
|
|
// XcodeGen
|
|
//
|
|
// Created by Yonas Kolb on 24/7/17.
|
|
//
|
|
//
|
|
|
|
import Foundation
|
|
import PathKit
|
|
|
|
extension Path {
|
|
|
|
func byRemovingBase(path: Path) -> Path {
|
|
return Path(normalize().string.replacingOccurrences(of: "\(path.normalize().string)/", with: ""))
|
|
}
|
|
}
|