]>
git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/Common/OsPath.h
2 Header file for helper functions useful to operate file directories by parsing
5 Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef _EFI_OS_PATH_H
11 #define _EFI_OS_PATH_H
13 #include <Common/UefiBaseTypes.h>
16 // Functions declarations
28 This function returns the directory path which contains the particular path.
36 This function does not check for the existence of the file.
38 The caller must free the string returned.
42 FilePath Path name of file to get the parent directory for.
52 OsPathNormPathInPlace (
60 This function returns the directory path which contains the particular path.
66 This function does not check for the existence of the file.
70 Path Path name of file to normalize
74 The string is altered in place.
89 This function replaces the final portion of a path with an alternative
90 'peer' filename. For example:
91 "a/b/../c", "peer" -> "a/b/../peer"
92 "a/b/", "peer" -> "a/b/peer"
93 "/a", "peer" -> "/peer"
96 This function does not check for the existence of the file.
100 OldPath Path name of replace the final segment
101 Peer The new path name to concatenate to become the peer path
105 A CHAR8* string, which must be freed by the caller
112 IN CHAR8
*InputFileName
119 Checks if a file exists
123 InputFileName The name of the file to check for existence
128 FALSE The file does not exist