#NEWLINE# def _valid_path( self , filepath , encoded_path ) : #NEWLINE# #INDENT# if ( encoded_path == filepath ) : #NEWLINE# #INDENT# path = os . path . join ( self . base_store_folder , encoded_path ) #NEWLINE# path = os . path . normpath ( encoded_path ) #NEWLINE# if ( not path . startswith ( self . base_store_folder ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False