]>
git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/Common/LongFilePathOsPath.py
2 # Override built in module os.path to provide support for long file path
4 # Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
5 # SPDX-License-Identifier: BSD-2-Clause-Patent
9 from Common
.LongFilePathSupport
import LongFilePath
12 return os
.path
.isfile(LongFilePath(path
))
15 return os
.path
.isdir(LongFilePath(path
))
18 return os
.path
.exists(LongFilePath(path
))
20 def getsize(filename
):
21 return os
.path
.getsize(LongFilePath(filename
))
23 def getmtime(filename
):
24 return os
.path
.getmtime(LongFilePath(filename
))
26 def getatime(filename
):
27 return os
.path
.getatime(LongFilePath(filename
))
29 def getctime(filename
):
30 return os
.path
.getctime(LongFilePath(filename
))
33 splitext
= os
.path
.splitext
34 splitdrive
= os
.path
.splitdrive
36 abspath
= os
.path
.abspath
37 basename
= os
.path
.basename
38 commonprefix
= os
.path
.commonprefix
40 normpath
= os
.path
.normpath
41 normcase
= os
.path
.normcase
42 dirname
= os
.path
.dirname
43 islink
= os
.path
.islink
45 realpath
= os
.path
.realpath
46 relpath
= os
.path
.relpath
47 pardir
= os
.path
.pardir