def METHOD_NAME(path, pwd=None):
	'''Convenience method that resolves a local C{File} or C{Folder} object
	If the path is a string and ends with either "/" or "\\" it is interpreted
	as user input and a C{LocalFolder} object will be returned. Else the function
	will try to sort out whether the path is a file or a folder by checking on
	disk. This requires the object to exist.
	NOTE: for consistency, this function only returns objects for existing files
	or folders, else it raises C{FileNotFoundError}
	@param path: file path as a string, L{FilePath} object, or list of path elements
	@param pwd: working directory as a string, needed to allow relative paths
	'''
	if pwd:
		filepath = FilePath(pwd).get_abspath(path)
	else:
		filepath = FilePath(path)
	if isinstance(path, str) and path and path[-1] in ('/', '\\'):
		folder = LocalFolder(filepath)
		if folder.exists():
			return folder
		else:
			raise FileNotFoundError(filepath)
	else:
		try:
			return LocalFolder(filepath.dirname).child(filepath.basename)
		except:
			raise FileNotFoundError(filepath) # translate parent not found error