(views, erase_settings=False)
views
        list of integers which are view.id(), can be empty
    erase_settings
        boolean, can be True after change of global setting dired_autorefresh
views
        list of integers which are view.id(), can be empty
    erase_settings
        boolean, can be True after change of global setting dired_autorefresh
views list of integers which are view . id () can be empty erase_settings boolean can be True after change of global setting dired_autorefresh
def refresh(views, erase_settings=False):
    '''
    views
        list of integers which are view.id(), can be empty
    erase_settings
        boolean, can be True after change of global setting dired_autorefresh
    '''
    if not views and not erase_settings:
        def is_dired(view): return view.settings() and view.settings().get("dired_path")
    else:
        def is_dired(view): return False

    for w in sublime.windows():
        for v in w.views():
            if v.id() in views or is_dired(v):
                if erase_settings:
                    v.settings().erase('dired_autorefresh')
                v.run_command('dired_refresh')
def refresh ( views , erase_settings = False ) : if not views and not erase_settings : def is_dired ( view ) : return view . settings ( ) and view . settings ( ) . get ( "dired_path" ) else : def is_dired ( view ) : return False for w in sublime . windows ( ) : for v in w . views ( ) : if v . id ( ) in views or is_dired ( v ) : if erase_settings : v . settings ( ) . erase ( 'dired_autorefresh' ) v . run_command ( 'dired_refresh' )