AddLocalFile is for adding existing files in the filesystem to an ISO.
It first tries to hardlink the file to the staging area which can
provide speed-up. If hardlinking is not possible, it opens the
specified file and calls AddFile().
Even if hardlinking is never possible, it saves a few lines of codes
in many places because you don't need to handle the opening/closing
of files yourself.
AddLocalFile is for adding existing files in the filesystem to an ISO. It first tries to hardlink the file to the staging area which can provide speed-up. If hardlinking is not possible, it opens the specified file and calls AddFile().
Even if hardlinking is never possible, it saves a few lines of codes in many places because you don't need to handle the opening/closing of files yourself.