#NEWLINE# def confirm_dir( fsdir , uid_mappings , gid_mappings , nobody ) : #NEWLINE# #INDENT# uid_ranges = get_ranges ( uid_mappings ) #NEWLINE# gid_ranges = get_ranges ( gid_mappings ) #NEWLINE# if ( not confirm_path ( fsdir , uid_ranges , gid_ranges , nobody ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# for ( root , dirs , files ) in os . walk ( fsdir ) : #NEWLINE# #INDENT# for d in dirs : #NEWLINE# #INDENT# path = os . path . join ( root , d ) #NEWLINE# if ( not confirm_path ( path , uid_ranges , gid_ranges , nobody ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# for f in files : #NEWLINE# #INDENT# path = os . path . join ( root , f ) #NEWLINE# if ( not confirm_path ( path , uid_ranges , gid_ranges , nobody ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return True