     }
 }
 
-extension Path {
+public extension Path {
     var attributes:FileAttributes {
         return FileAttributes(path)
     }
 }
 
-struct FileAttributes {
+public struct FileAttributes {
 
     private let path:String
 

        }
    }

    var isDirectory:Bool {
        return fileType == .Directory
    }

    func iter(@noescape closure:Path -> Void) {
        let enumerator = NSFileManager().enumeratorAtURL(url, includingPropertiesForKeys: nil, options: NSDirectoryEnumerationOptions.SkipsSubdirectoryDescendants, errorHandler: nil)
        for url in enumerator! {
            closure(Path(url as! NSURL))
        }
    }

    var length:Int {
        return try! getAttributes()[NSFileSize] as! Int
    }



// MARK: -

public func + (lhs:Path, rhs:String) -> Path {
    let URL = lhs.url.URLByAppendingPathComponent(rhs)
    return Path(URL)
}
