def lstat(patch, path):
    """
	Perform the equivalent of an lstat() system call on the given path.
	Similar to stat(), but does not follow symbolic links.
	On platforms that do not support symbolic links, this is an alias for stat().
	"""
    ap = os.path.abspath(os.path.join(CWD, path))
    manager = get_manager()
    fsi, relpath, readonly = manager.get_fsi(ap)
    if fsi is None:
        return _org_lstat(relpath)
    else:
        # we dont have 'lstat', fallback to stat()
        try:
            return fsi.stat(relpath)
        except OperationFailure:
            raise os.error("[Errno 2] No such file or directory: '{p}'".format(p=ap))

	Perform the equivalent of an lstat() system call on the given path.
	Similar to stat(), but does not follow symbolic links.
	On platforms that do not support symbolic links, this is an alias for stat().
	
lib/mlpatches/mount_base.py