(self, dir=os.getcwd())
Cleans the build artifacts for the Unreal project or plugin in the specified directory
Cleans the build artifacts for the Unreal project or plugin in the specified directory
Cleans the build artifacts for the Unreal project or plugin in the specified directory
def cleanDescriptor(self, dir=os.getcwd()):
		"""
		Cleans the build artifacts for the Unreal project or plugin in the specified directory
		"""
		
		# Verify that an Unreal project or plugin exists in the specified directory
		descriptor = self.getDescriptor(dir)
		
		# Because performing a clean will also delete the engine build itself when using
		# a source build, we simply delete the `Binaries` and `Intermediate` directories
		shutil.rmtree(os.path.join(dir, 'Binaries'), ignore_errors=True)
		shutil.rmtree(os.path.join(dir, 'Intermediate'), ignore_errors=True)
		
		# If we are cleaning a project, also clean any plugins
		if self.isProject(descriptor):
			projectPlugins = glob.glob(os.path.join(dir, 'Plugins', '**', '*.uplugin'), recursive=True)
			for plugin in projectPlugins:
				self.cleanDescriptor(os.path.dirname(plugin))
def cleanDescriptor ( self , dir = os . getcwd ( ) ) : # Verify that an Unreal project or plugin exists in the specified directory descriptor = self . getDescriptor ( dir ) # Because performing a clean will also delete the engine build itself when using # a source build, we simply delete the `Binaries` and `Intermediate` directories shutil . rmtree ( os . path . join ( dir , 'Binaries' ) , ignore_errors = True ) shutil . rmtree ( os . path . join ( dir , 'Intermediate' ) , ignore_errors = True ) # If we are cleaning a project, also clean any plugins if self . isProject ( descriptor ) : projectPlugins = glob . glob ( os . path . join ( dir , 'Plugins' , '**' , '*.uplugin' ) , recursive = True ) for plugin in projectPlugins : self . cleanDescriptor ( os . path . dirname ( plugin ) )