ChunkedFileOutputStream

constructor(filesDir: File, chunkSize: Int, chunkNameGenerator: (Int) -> String = { id -> "chunk_$id" })

Parameters

filesDir

the directory where the files will be written

chunkSize

the size of each file in bytes

chunkNameGenerator

generate the name of each file from its index