fb_lazy_realpath

Returns a canonicalized version of the input path that contains no symbolic links, like realpath(), except uses cached information from an internal inotify-based mechanism that may not be updated during the duration of a request

function fb_lazy_realpath(
  string $filename,
): mixed;

Parameters

  • string $filename - Fake path to the file.

Returns

  • string - - Real path of the file.