MCPcopy Create free account
hub / github.com/RUB-NDS/PRET / do_format

Method do_format

postscript.py:469–478  ·  view source on GitHub ↗

Initialize printer's file system: format

(self, arg)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 5

cmdMethod · 0.95
outputClass · 0.90
infoMethod · 0.80
warningMethod · 0.80
countdownMethod · 0.80

Tested by

no test coverage detected