     /// - parameter path:  A path
     ///
     /// - returns:  `true` if the path exists and is a directory, `false` otherwise.
-    static func isDir(_ path: String) -> Bool {
+    public static func isDir(_ path: String) -> Bool {
         var dir: ObjCBool = false
 
         let exists = FileManager.default.fileExists(atPath: path, isDirectory: &dir)

//  MARK: - Basics
// -------------------------------------------------------

struct Path {

    /// Builds a path string by joining components, adding directory
    /// separators where necessary.


import Foundation

public enum PathElements {
    /// A directory. e.g. "/var/home"
    case dir

