             return size
         }
         
-        let itemsSize:UInt64 = sizeOfItems(path:path)
+        let itemsSize:UInt64 = sizeOfItems(url:url)
         size += itemsSize
         
         return size

        }
    }
    
    private func sizeOfItems(path:String) -> UInt64
    {
        var size:UInt64 = 0
        /*let contents:[String] = contentsAt(path:path)
        
        for path:String in contents
        {
            let itemSize:UInt64 = sizeAt(path:path)
            size += itemSize
        }*/
        
        return size
    }
    
    private func sizeOfItem(path:String) -> UInt64
    {
        let attributes:[FileAttributeKey:Any]
        
        do
        {
            try attributes = attributesOfItem(atPath:path)
        }
        catch
        {

        return systemSize
    }
    
    func sizeAt(url:URL) -> UInt64
    {
        var isDirectory:ObjCBool = false
        
        guard
            
            fileExists(atPath:url.path, isDirectory:&isDirectory)
            
        else
        {
            return 0
        }
        
        var size:UInt64 = sizeOfItem(url:url)
        
        guard
            
