#NEWLINE# def deleteWebRoot( self , webroot ) : #NEWLINE# #INDENT# webroot = webroot . strip ( ) #NEWLINE# if ( ( webroot == '/var/www/' ) or ( webroot == '/var/www' ) or ( webroot == '/var/www/..' ) or ( webroot == '/var/www/.' ) ) : #NEWLINE# #INDENT# Log . debug ( self , "Tried to remove {0}, but didn't remove it" . format ( webroot ) ) #NEWLINE# return False #NEWLINE# #UNINDENT# if os . path . isdir ( webroot ) : #NEWLINE# #INDENT# Log . debug ( self , 'Removing {0}' . format ( webroot ) ) #NEWLINE# EEFileUtils . rm ( self , webroot ) #NEWLINE# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# Log . debug ( self , '{0} does not exist' . format ( webroot ) ) #NEWLINE# return False