setupStream
fun setupStream(context: Context, name: String, folder: String?, extension: String, tryResume: Boolean): DownloadObjects.StreamData(source)
fun setupStream(baseFile: SafeFile, name: String, folder: String?, extension: String, tryResume: Boolean): DownloadObjects.StreamData(source)
Sets up the appropriate file and creates a data stream from the file. Used for initializing downloads and backups.