bypy/bypy.py
def cleancache(self):
		''' Usage: cleancache - remove invalid entries from hash cache file'''
		if os.path.exists(self.__hashcachepath):
			try:
				# backup first
				backup = self.__hashcachepath + '.lastclean'
				shutil.copy(self.__hashcachepath, backup)
				self.pd("Hash Cache file '{}' backed up as '{}".format(
					self.__hashcachepath, backup))
				cached.cleancache()
				return const.ENoError
			except Exception as ex:
				perr(formatex(ex))
				return const.EException
		else:
			return const.EFileNotFound
 Usage: cleancache - remove invalid entries from hash cache file
remove invalid entries from hash cache file
remove invalid entries from hash cache file
def cleancache(self):
		if os.path.exists(self.__hashcachepath):
			try:
				backup = self.__hashcachepath + '.lastclean'
				shutil.copy(self.__hashcachepath, backup)
				self.pd("Hash Cache file '{}' backed up as '{}".format(
					self.__hashcachepath, backup))
				cached.cleancache()
				return const.ENoError
			except Exception as ex:
				perr(formatex(ex))
				return const.EException
		else:
			return const.EFileNotFound
def cleancache ( self ) : if os . path . exists ( self . __hashcachepath ) : try : backup = self . __hashcachepath + '.lastclean' shutil . copy ( self . __hashcachepath , backup ) self . pd ( "Hash Cache file '{}' backed up as '{}" . format ( self . __hashcachepath , backup ) ) cached . cleancache ( ) return const . ENoError except Exception as ex : perr ( formatex ( ex ) ) return const . EException else : return const . EFileNotFound
Usage: cleancache - remove invalid entries from hash cache file
Usage : cleancache - remove invalid entries from hash cache file
''' Usage: cleancache - remove invalid entries from hash cache file''' # backup first
self