Fixed tab witdth
This commit is contained in:
@@ -684,7 +684,7 @@ class Picowatch(object):
|
||||
|
||||
def listing(self, filepath: str = '/'):
|
||||
filepath = filepath.strip('./')
|
||||
tab = Tab(4, 30, 15, nb_columns=4)
|
||||
tab = Tab(4, 50, 15, nb_columns=4)
|
||||
tab.head('[ ]', 'Filename', 'Size (kb)', 'Exception')
|
||||
status, output, exception = self.filesystem.ls(filepath)
|
||||
|
||||
@@ -707,7 +707,7 @@ class Picowatch(object):
|
||||
|
||||
|
||||
def upload(self, filepath: str):
|
||||
tab = Tab(4, 30, 15, 15, nb_columns=5)
|
||||
tab = Tab(4, 50, 15, 15, nb_columns=5)
|
||||
tab.head('[ ]', 'Filename', 'Size (kb)', 'Checksum', 'Exception')
|
||||
|
||||
for source, size in self.internal_ls(filepath):
|
||||
@@ -719,7 +719,7 @@ class Picowatch(object):
|
||||
tab.line('[?]', destination, '', '', str(e))
|
||||
|
||||
def download(self, filepath: str):
|
||||
tab = Tab(4, 30, 15, nb_columns=4)
|
||||
tab = Tab(4, 50, 15, nb_columns=4)
|
||||
tab.head('[ ]', 'Filename', 'Checksum', 'Exception')
|
||||
status, output, exception = self.filesystem.ls(filepath.strip('./').strip('/'))
|
||||
|
||||
@@ -740,7 +740,7 @@ class Picowatch(object):
|
||||
tab.line('[?]', filepath, '', exception)
|
||||
|
||||
def delete(self, filepath: str):
|
||||
tab = Tab(4, 30, nb_columns=3)
|
||||
tab = Tab(4, 50, nb_columns=3)
|
||||
tab.head('[ ]', 'Filename', 'Exception')
|
||||
status, output, exception = self.filesystem.rm(filepath.strip('./'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user