Initialize printer's file system: format
(self, arg)
| 467 | |
| 468 | # ------------------------[ format ]---------------------------------- |
| 469 | def do_format(self, arg): |
| 470 | "Initialize printer's file system: format <disk>" |
| 471 | if not self.vol: |
| 472 | output().info("Set volume first using 'chvol'") |
| 473 | else: |
| 474 | output().warning("Warning: Initializing the printer's file system will whipe-out all") |
| 475 | output().warning("user data (e.g. stored jobs) on the volume. Press CTRL+C to abort.") |
| 476 | if output().countdown("Initializing " + self.vol + " in...", 10, self): |
| 477 | str_recv = self.cmd( |
| 478 | 'statusdict begin (' + self.vol + ') () initializedisk end', False) |
| 479 | |
| 480 | # ------------------------[ disable ]--------------------------------- |
| 481 | def do_disable(self, arg): |