Wipe a file with a feedback on operation progress
Namespace: LLCryptoLib.ShredAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
Parameters
- filePath
- Type: System.IO..::..FileInfo
Complete file path of file to be wiped
- method
- Type: LLCryptoLib.Shred..::..IShredMethod
Shredding method
- cbe
- Type: LLCryptoLib..::..CallbackEntry
Callback entry point for feedback. The callback method will be called every 1024 bytes shredded. An integer will be passed to callback method with the current kilobyte being erased. For instance, if you want to erase a 200kb file, this delegate will call the method for 200 times passing to it integers from 1 to 200.
- phase
- Type: LLCryptoLib..::..CallbackPoint
The phase feedback message
- delete
- Type: System..::..Boolean
If false it just rewrites the file and filename. If true, rewrites and then delete
Return Value
True if the file has been successfully shredded
See Also