                 }
                 
                 if let error = error as NSError? {
-                    success = false
                     asset.error = error
                     
                     asset.localTemporaryPath = nil

                        let attributes = try FileManager.default.attributesOfItem(atPath: asset.localTemporaryPath!.path)
                        asset.fileSize = (attributes[FileAttributeKey.size] as! NSNumber).uintValue
                    } catch let error as NSError {
                        success = false
                        asset.error = error
                        
                        asset.localTemporaryPath = nil

            
            operation.completionBlock = nil
            
            var exportedCount = 0
            
            let exportCompletionBlock: (DKAsset, Error?) -> Void = { asset, error in
