]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg-UefiShellLib: Add a function to fully-qualify paths
authorJim.Dailey@dell.com <Jim.Dailey@dell.com>
Mon, 29 Oct 2018 21:14:36 +0000 (05:14 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Mon, 5 Nov 2018 02:52:40 +0000 (10:52 +0800)
commit9ba404d6644c61b3b4f792982517d981d882dc71
treebf7556270f89e71c2df41cdd4cca59e0140c5378
parente048ce883c8e9f746a655ca5a4c8c0ce34198999
ShellPkg-UefiShellLib: Add a function to fully-qualify paths

Add a function to return a clean, fully-qualified version of some path.

This function handles a (possibly "dirty") input path that may or may
not include a file system reference.

If it does not include a file system reference, then if the input path
does not begin with a forward or backward slash, then the input path is
relative to the current working directory of the current file system.
Otherwise, it is an absolute path within the current file system.

If it does include a file system reference, it may be a reference to the
current or some other file system.  If the file system reference is not
immediately followed by a forward or backward slash, then the input path
is relative to the current working directory of the given file system.
Otherwise, it is an absolute path within the given file system.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jim Dailey <jim_dailey@dell.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
ShellPkg/Include/Library/ShellLib.h
ShellPkg/Library/UefiShellLib/UefiShellLib.c