]>
Commit | Line | Data |
---|---|---|
1be2ed90 HC |
1 | ## @file\r |
2 | # Override built in module os.path to provide support for long file path\r | |
3 | #\r | |
4 | # Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r | |
2e351cbe | 5 | # SPDX-License-Identifier: BSD-2-Clause-Patent\r |
1be2ed90 HC |
6 | #\r |
7 | \r | |
8 | import os\r | |
9 | from Common.LongFilePathSupport import LongFilePath\r | |
10 | \r | |
11 | def isfile(path):\r | |
12 | return os.path.isfile(LongFilePath(path))\r | |
13 | \r | |
14 | def isdir(path):\r | |
15 | return os.path.isdir(LongFilePath(path))\r | |
16 | \r | |
17 | def exists(path):\r | |
18 | return os.path.exists(LongFilePath(path))\r | |
19 | \r | |
20 | def getsize(filename):\r | |
21 | return os.path.getsize(LongFilePath(filename))\r | |
22 | \r | |
23 | def getmtime(filename):\r | |
24 | return os.path.getmtime(LongFilePath(filename))\r | |
25 | \r | |
26 | def getatime(filename):\r | |
27 | return os.path.getatime(LongFilePath(filename))\r | |
28 | \r | |
29 | def getctime(filename):\r | |
30 | return os.path.getctime(LongFilePath(filename))\r | |
31 | \r | |
32 | join = os.path.join\r | |
33 | splitext = os.path.splitext\r | |
34 | splitdrive = os.path.splitdrive\r | |
35 | split = os.path.split\r | |
36 | abspath = os.path.abspath\r | |
37 | basename = os.path.basename\r | |
38 | commonprefix = os.path.commonprefix\r | |
39 | sep = os.path.sep\r | |
40 | normpath = os.path.normpath\r | |
41 | normcase = os.path.normcase\r | |
42 | dirname = os.path.dirname\r | |
43 | islink = os.path.islink\r | |
44 | isabs = os.path.isabs\r | |
45 | realpath = os.path.realpath\r | |
05cc51ad LY |
46 | relpath = os.path.relpath\r |
47 | pardir = os.path.pardir\r |