#NEWLINE# def file_list_emptydirs( self , load ) : #NEWLINE# #INDENT# '\n        List all emptydirs in the given environment\n        ' #NEWLINE# if ( 'env' in load ) : #NEWLINE# #INDENT# salt . utils . warn_until ( 'Oxygen' , "Parameter 'env' has been detected in the argument list.  This parameter is no longer used and has been replaced by 'saltenv' as of Salt Carbon.  This warning will be removed in Salt Oxygen." ) #NEWLINE# load . pop ( 'env' ) #NEWLINE# #UNINDENT# ret = set ( ) #NEWLINE# if ( 'saltenv' not in load ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# if ( not isinstance ( load [ 'saltenv' ] , six . string_types ) ) : #NEWLINE# #INDENT# load [ 'saltenv' ] = six . text_type ( load [ 'saltenv' ] ) #NEWLINE# #UNINDENT# for fsb in self . _gen_back ( None ) : #NEWLINE# #INDENT# fstr = '{0}.file_list_emptydirs' . format ( fsb ) #NEWLINE# if ( fstr in self . servers ) : #NEWLINE# #INDENT# ret . update ( self . servers [ fstr ] ( load ) ) #NEWLINE# #UNINDENT# #UNINDENT# ret = [ salt . utils . locales . sdecode ( f ) for f in ret ] #NEWLINE# prefix = load . get ( 'prefix' , '' ) . strip ( '/' ) #NEWLINE# if ( prefix != '' ) : #NEWLINE# #INDENT# ret = [ f for f in ret if f . startswith ( prefix ) ] #NEWLINE# #UNINDENT# return sorted ( ret )