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