(self, edit, path, names)
Called when no directories were (or/and need to be) expanded
Called when no directories were (or/and need to be) expanded
Called when no directories were ( or / and need to be ) expanded
def populate_view(self, edit, path, names):
        '''Called when no directories were (or/and need to be) expanded'''
        if not path and names:  # open ThisPC
            self.continue_populate(edit, path, names)
            return
        items, error = self.try_listing_directory(path)
        if error:
            self.view.run_command("dired_up")
            self.view.set_read_only(False)
            self.view.insert(edit, self.view.line(self.view.sel()[0]).b,
                             u'\t<%s>' % error)
            self.view.set_read_only(True)
        else:
            self.continue_populate(edit, path, items)
def populate_view ( self , edit , path , names ) : if not path and names : # open ThisPC self . continue_populate ( edit , path , names ) return items , error = self . try_listing_directory ( path ) if error : self . view . run_command ( "dired_up" ) self . view . set_read_only ( False ) self . view . insert ( edit , self . view . line ( self . view . sel ( ) [ 0 ] ) . b , u'\t<%s>' % error ) self . view . set_read_only ( True ) else : self . continue_populate ( edit , path , items )