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 8import os 9from Common.LongFilePathSupport import LongFilePath 10 11def isfile(path): 12 return os.path.isfile(LongFilePath(path)) 13 14def isdir(path): 15 return os.path.isdir(LongFilePath(path)) 16 17def exists(path): 18 return os.path.exists(LongFilePath(path)) 19 20def getsize(filename): 21 return os.path.getsize(LongFilePath(filename)) 22 23def getmtime(filename): 24 return os.path.getmtime(LongFilePath(filename)) 25 26def getatime(filename): 27 return os.path.getatime(LongFilePath(filename)) 28 29def getctime(filename): 30 return os.path.getctime(LongFilePath(filename)) 31 32join = os.path.join 33splitext = os.path.splitext 34splitdrive = os.path.splitdrive 35split = os.path.split 36abspath = os.path.abspath 37basename = os.path.basename 38commonprefix = os.path.commonprefix 39sep = os.path.sep 40normpath = os.path.normpath 41normcase = os.path.normcase 42dirname = os.path.dirname 43islink = os.path.islink 44isabs = os.path.isabs 45realpath = os.path.realpath 46relpath = os.path.relpath 47pardir = os.path.pardir 48