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