def __init__(self, path, dir_paths, hide=None):
     self.VERTICAL_START_POINT = 2
     self.VERTICAL_SPACER = 1
     self.INDENT_SIZE = 4
     self.left_position = self.INDENT_SIZE
     self.line_x0 = 0
     self.vertical_position = 0
     self.vertical_user_start = 0
     self.screen = curses.initscr()
     self.screen_params = {}
     self.dir_namer = DirectoryNamer(path)
     self.unknown_files = UnknownFiles(path=path,
                                       dir_paths=dir_paths,
                                       excluded_names=hide)
     self.current_file_index = 0
     self.names = []
     self.phases = _UnknownPhases()
     self.current_phase = 0
     self.current_text = ''
     self.colors = Colors()
     self.first_time = True
     self.path = path
     self.all_names = []
     self.modes = _UnknownMode()
     self.mode = self.modes.entry
     self.setup()
Exemple #2
0
 def unknown_files(self):
     path_list = [
         '/Volumes/Charlie/.p/', '/Volumes/Charlie/.p/finished/',
         '/Volumes/Echo/.p/finished/', '/Volumes/Papa/.finished/',
         '/Volumes/Papa/.organized/', '/Volumes/Papa/.p/'
     ]
     #path = '/Volumes/Papa/.finished/'
     path = '/Users/agreen/.stage/finished/'
     do_not_print = ['.DS_Store', 'organized', 'music']
     unknown = UnknownFiles(path,
                            path_list,
                            excluded_names=do_not_print,
                            run_local=False)
     unknown.fetch_unknown_files()
     unknown.print_unknown_files()
     unknown.step_through_files()
     return None