]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/Common/LongFilePathOsPath.py
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / BaseTools / Source / Python / Common / LongFilePathOsPath.py
1 ## @file
2 # Override built in module os.path to provide support for long file path
3 #
4 # Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
5 # SPDX-License-Identifier: BSD-2-Clause-Patent
6 #
7
8 import os
9 from Common.LongFilePathSupport import LongFilePath
10
11 def isfile(path):
12 return os.path.isfile(LongFilePath(path))
13
14 def isdir(path):
15 return os.path.isdir(LongFilePath(path))
16
17 def exists(path):
18 return os.path.exists(LongFilePath(path))
19
20 def getsize(filename):
21 return os.path.getsize(LongFilePath(filename))
22
23 def getmtime(filename):
24 return os.path.getmtime(LongFilePath(filename))
25
26 def getatime(filename):
27 return os.path.getatime(LongFilePath(filename))
28
29 def getctime(filename):
30 return os.path.getctime(LongFilePath(filename))
31
32 join = os.path.join
33 splitext = os.path.splitext
34 splitdrive = os.path.splitdrive
35 split = os.path.split
36 abspath = os.path.abspath
37 basename = os.path.basename
38 commonprefix = os.path.commonprefix
39 sep = os.path.sep
40 normpath = os.path.normpath
41 normcase = os.path.normcase
42 dirname = os.path.dirname
43 islink = os.path.islink
44 isabs = os.path.isabs
45 realpath = os.path.realpath
46 relpath = os.path.relpath
47 pardir = os.path.pardir