Esempio n. 1
0
 def print_files_colored(files, color, size=False):
     for i in sorted(files):
         with self.ui.colored(color) as color_print:
             color_print(' ' + i.path)
         if size:
             self.ui.out(' %s' % pretty_bytes(i.size))
         self.ui.out('\n')
Esempio n. 2
0
 def print_files_colored(files, color, size=False):
     for i in sorted(files):
         with self.ui.colored(color) as color_print:
             color_print(' ' + i.path)
         if size:
             self.ui.out(' %s' % pretty_bytes(i.size))
         self.ui.out('\n')
Esempio n. 3
0
 def bytes_msg():
     return ("Transferring... up: %s, down: %s"
             % (pretty_bytes(bytes_count['up']),
                pretty_bytes(bytes_count['down'])))
Esempio n. 4
0
 def bytes_msg():
     return ("Transferring... up: %s, down: %s" % (pretty_bytes(
         bytes_count['up']), pretty_bytes(bytes_count['down'])))