FileSplitterMerge Method

Merges the chunks of a previously splitted file.

Definition

Namespace: DevCase.Core.IO.FileSystem
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public virtual void Merge(
	string targetFile = "",
	bool overwrite = false,
	bool deleteChunksAfterMerged = false
)

Parameters

targetFile  String  (Optional)
The target filepath.
overwrite  Boolean  (Optional)
If set to , in case that the specified file in targetFile exists it will be overwritten, otherwise, an exception will be thrown.
deleteChunksAfterMerged  Boolean  (Optional)
If set to , the chunks will be deleted after a successful merge operation.

Exceptions

FileNotFoundException The specified source chunk file doesn't exists.
FileNotFoundException Only one chunk file found, the last chunk file is missing.
IOException The specified target file already exists.
OverflowException Unexpected chunk filesize-count detected, maybe one of the chunk files is corrupt?.

See Also