def format(self, name): thisDrive = Drive(name) thisDrive.format() thisDrive.write_block(0, "+" + "-" * 127 + ("f:" + " " * 9 + "0000:" + "000 " * 12) * 6) global availableBlocksList availableBlocksList = ['+'] + ['-' for x in range(127)] global availableBlockIndices availableBlockIndices = list(range(1, 128)) self.currentDrive = thisDrive self.rootDirectory = Directory(self.currentDrive, None, 0, None, None) #drive, fileNum, parentBlockNum, parent, name self.blocksAvailability = thisDrive.read_block(0)[:127]