]>
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 # This program and the accompanying materials
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http://opensource.org/licenses/bsd-license.php
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 from Common
.LongFilePathSupport
import LongFilePath
18 return os
.path
.isfile(LongFilePath(path
))
21 return os
.path
.isdir(LongFilePath(path
))
24 return os
.path
.exists(LongFilePath(path
))
26 def getsize(filename
):
27 return os
.path
.getsize(LongFilePath(filename
))
29 def getmtime(filename
):
30 return os
.path
.getmtime(LongFilePath(filename
))
32 def getatime(filename
):
33 return os
.path
.getatime(LongFilePath(filename
))
35 def getctime(filename
):
36 return os
.path
.getctime(LongFilePath(filename
))
39 splitext
= os
.path
.splitext
40 splitdrive
= os
.path
.splitdrive
42 abspath
= os
.path
.abspath
43 basename
= os
.path
.basename
44 commonprefix
= os
.path
.commonprefix
46 normpath
= os
.path
.normpath
47 normcase
= os
.path
.normcase
48 dirname
= os
.path
.dirname
49 islink
= os
.path
.islink
51 realpath
= os
.path
.realpath
52 relpath
= os
.path
.relpath
53 pardir
= os
.path
.pardir