Exemple #1
0
    def dePrintEntryInfo(self):
        """Print information about this directory entry."""

        print rad50.rad50ToFilename(self.deName) + ":"
        print "  status  = " + statWordToStr(self.deStatus)
        print "  length  = " + str(self.deLength)
        print "  start   = " + str(self.deStart)
        print "  date    = " + rt11util.dateWordToStr(self.deDate)
        print "  jobchan = " + str(self.deJobChan)
        print "  extra   = " + str(self.deExtra)
Exemple #2
0
    def dePrintDirEntry(self, long_format=False, omit_perm_flag=True):
        """Print directory listing line for this directory entry."""

        dirline = (
            rad50.rad50ToFilename(self.deName).ljust(12)
            + str(self.deLength).rjust(8)
            + rt11util.dateWordToStr(self.deDate).rjust(14)
        )

        if long_format:
            dirline = dirline + str(self.deStart).rjust(8) + "  " + statWordToStr(self.deStatus, omit_perm_flag)
        print dirline