def __indexedIOPathChanged( self, path ) :

		pathCopy = path.copy()
		pathCopy.truncateUntilValid()

		with Gaffer.BlockedConnection( self.__pathListingSelectionChangedConnection ) :
			## \todo This functionality might be nice in the PathChooserWidget. We could
			# maybe even use a PathChooserWidget here anyway.
			self.__pathListing.setSelectedPaths( [ pathCopy ], expandNonLeaf=False )
			# expand as people type forwards
			if len( self.__prevPath ) > len( pathCopy ) :
				self.__pathListing.setPathExpanded( pathCopy, True )
			# collapse as people delete backwards
			else :
				while len( pathCopy ) < len( self.__prevPath ) :
					self.__pathListing.setPathExpanded( self.__prevPath, False )
					del self.__prevPath[-1]

		self.__prevPath = pathCopy
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferCortexUI/FileIndexedIOPathPreview.py/FileIndexedIOPathPreview.__indexedIOPathChanged/swapped operands of `>`