TbCommandDeleteFile constructor
Implementation
TbCommandDeleteFile({String? filePath, bool fromFlash = true}) {
if (filePath == null) {
if (fromFlash) {
outCommand = "KILL F, \"* \"\r\n";
}
else {
outCommand = "KILL \"* \"\r\n";
}
}
else {
if (fromFlash) {
outCommand =
"KILL F, \"${ITbCommand.pathToBrotherFileName(filePath)}\"\r\n";
}
else {
outCommand =
"KILL \"${ITbCommand.pathToBrotherFileName(filePath)}\"\r\n";
}
}
}