             }
         }
     }
-
+    
     
 }

    ///   - chunkMaxSize: the max size for a chunk / future block
    ///   - compress: should we compress (using LZ4)
    ///   - encrypt: should we encrypt (using AES256)
    ///   - success: the success closure returns a Chunk Struct to be used to create/update Block instances
    ///   - failure: the failure closure
    public func breakIntoChunk(  fileAt path:String,
                                 destination folderPath:String,
                                 chunkMaxSize:Int=10*MB,
                                 compress:Bool,encrypt:Bool,
                                 success:@escaping ([Chunk])->(),
                                 failure:@escaping (String)->()){

        // Don't block the main thread with those intensive IO  processing
        Async.utility {

                    nb += 1
                }

                let progressionState=Progression()
                progressionState.totalTaskCount=Int(nb)
                progressionState.currentTaskIndex=0
                progressionState.externalIdentifier=externalId
                progressionState.message=""


                let _ = try? FileManager.default.removeItem(atPath: folderPath)
                let _ = try? FileManager.default.createDirectory(atPath: folderPath, withIntermediateDirectories: true, attributes: nil)

