blob: d0179f112cbfad513e86583393009a6bb65be3e5 [file] [log] [blame]
Guido van Rossum54f22ed2000-02-04 15:10:34 +00001"""Common operations on Posix pathnames.
2
3Instead of importing this module directly, import os and refer to
4this module as os.path. The "os.path" name is an alias for this
5module on Posix systems; on other systems (e.g. Mac, Windows),
6os.path provides the same operations in a manner specific to that
7platform, and is an alias to another module (e.g. macpath, ntpath).
8
9Some of this can actually be useful on non-Posix systems too, e.g.
10for manipulation of the pathname component of URLs.
Guido van Rossum346f7af1997-12-05 19:04:51 +000011"""
Guido van Rossumc6360141990-10-13 19:23:40 +000012
Guido van Rossumd3876d31996-07-23 03:47:28 +000013import os
Guido van Rossum40d93041990-10-21 16:17:34 +000014import stat
Guido van Rossumc6360141990-10-13 19:23:40 +000015
Skip Montanaroc62c81e2001-02-12 02:00:42 +000016__all__ = ["normcase","isabs","join","splitdrive","split","splitext",
17 "basename","dirname","commonprefix","getsize","getmtime",
Martin v. Löwis96a60e42002-12-31 13:11:54 +000018 "getatime","getctime","islink","exists","isdir","isfile","ismount",
Skip Montanaroc62c81e2001-02-12 02:00:42 +000019 "walk","expanduser","expandvars","normpath","abspath",
Neal Norwitz61cdac62003-01-03 18:01:57 +000020 "samefile","sameopenfile","samestat",
21 "realpath","supports_unicode_filenames"]
Guido van Rossumc6360141990-10-13 19:23:40 +000022
Guido van Rossum7ac48781992-01-14 18:29:32 +000023# Normalize the case of a pathname. Trivial in Posix, string.lower on Mac.
24# On MS-DOS this may also turn slashes into backslashes; however, other
25# normalizations (such as optimizing '../' away) are not allowed
26# (another function should be defined to do that).
27
28def normcase(s):
Guido van Rossum346f7af1997-12-05 19:04:51 +000029 """Normalize case of pathname. Has no effect under Posix"""
30 return s
Guido van Rossum7ac48781992-01-14 18:29:32 +000031
32
Jeremy Hyltona05e2932000-06-28 14:48:01 +000033# Return whether a path is absolute.
Guido van Rossum7ac48781992-01-14 18:29:32 +000034# Trivial in Posix, harder on the Mac or MS-DOS.
35
36def isabs(s):
Guido van Rossum346f7af1997-12-05 19:04:51 +000037 """Test whether a path is absolute"""
38 return s[:1] == '/'
Guido van Rossum7ac48781992-01-14 18:29:32 +000039
40
Barry Warsaw384d2491997-02-18 21:53:25 +000041# Join pathnames.
42# Ignore the previous parts if a part is absolute.
Guido van Rossum4d0fdc31991-08-16 13:27:58 +000043# Insert a '/' unless the first part is empty or already ends in '/'.
Guido van Rossum7ac48781992-01-14 18:29:32 +000044
Barry Warsaw384d2491997-02-18 21:53:25 +000045def join(a, *p):
Guido van Rossum346f7af1997-12-05 19:04:51 +000046 """Join two or more pathname components, inserting '/' as needed"""
47 path = a
48 for b in p:
49 if b[:1] == '/':
50 path = b
51 elif path == '' or path[-1:] == '/':
52 path = path + b
53 else:
54 path = path + '/' + b
55 return path
Guido van Rossumc6360141990-10-13 19:23:40 +000056
57
Guido van Rossum26847381992-03-31 18:54:35 +000058# Split a path in head (everything up to the last '/') and tail (the
Guido van Rossuma89b1ba1995-09-01 20:32:21 +000059# rest). If the path ends in '/', tail will be empty. If there is no
60# '/' in the path, head will be empty.
61# Trailing '/'es are stripped from head unless it is the root.
Guido van Rossum7ac48781992-01-14 18:29:32 +000062
Guido van Rossumc6360141990-10-13 19:23:40 +000063def split(p):
Tim Peters2344fae2001-01-15 00:50:52 +000064 """Split a pathname. Returns tuple "(head, tail)" where "tail" is
Fred Drakec0ab93e2000-09-28 16:22:52 +000065 everything after the final slash. Either part may be empty."""
Fred Drake22fb8392000-09-28 15:04:39 +000066 i = p.rfind('/') + 1
Guido van Rossum346f7af1997-12-05 19:04:51 +000067 head, tail = p[:i], p[i:]
Fred Drake8152d322000-12-12 23:20:45 +000068 if head and head != '/'*len(head):
Guido van Rossum346f7af1997-12-05 19:04:51 +000069 while head[-1] == '/':
70 head = head[:-1]
71 return head, tail
Guido van Rossumc6360141990-10-13 19:23:40 +000072
73
Guido van Rossum4d0fdc31991-08-16 13:27:58 +000074# Split a path in root and extension.
Guido van Rossum422869a1996-08-20 20:24:17 +000075# The extension is everything starting at the last dot in the last
Guido van Rossum4d0fdc31991-08-16 13:27:58 +000076# pathname component; the root is everything before that.
Guido van Rossum7ac48781992-01-14 18:29:32 +000077# It is always true that root + ext == p.
78
Guido van Rossum4d0fdc31991-08-16 13:27:58 +000079def splitext(p):
Guido van Rossum346f7af1997-12-05 19:04:51 +000080 """Split the extension from a pathname. Extension is everything from the
Fred Drakec0ab93e2000-09-28 16:22:52 +000081 last dot to the end. Returns "(root, ext)", either part may be empty."""
Martin v. Löwisde333792002-12-12 20:30:20 +000082 i = p.rfind('.')
83 if i<=p.rfind('/'):
84 return p, ''
85 else:
86 return p[:i], p[i:]
Guido van Rossum4d0fdc31991-08-16 13:27:58 +000087
88
Guido van Rossum221df241995-08-07 20:17:55 +000089# Split a pathname into a drive specification and the rest of the
90# path. Useful on DOS/Windows/NT; on Unix, the drive is always empty.
91
92def splitdrive(p):
Tim Peters2344fae2001-01-15 00:50:52 +000093 """Split a pathname into drive and path. On Posix, drive is always
Fred Drakec0ab93e2000-09-28 16:22:52 +000094 empty."""
Guido van Rossum346f7af1997-12-05 19:04:51 +000095 return '', p
Guido van Rossum221df241995-08-07 20:17:55 +000096
97
Guido van Rossumc6360141990-10-13 19:23:40 +000098# Return the tail (basename) part of a path.
Guido van Rossum7ac48781992-01-14 18:29:32 +000099
Guido van Rossumc6360141990-10-13 19:23:40 +0000100def basename(p):
Guido van Rossum346f7af1997-12-05 19:04:51 +0000101 """Returns the final component of a pathname"""
102 return split(p)[1]
Guido van Rossumc6360141990-10-13 19:23:40 +0000103
104
Guido van Rossumc629d341992-11-05 10:43:02 +0000105# Return the head (dirname) part of a path.
106
107def dirname(p):
Guido van Rossum346f7af1997-12-05 19:04:51 +0000108 """Returns the directory component of a pathname"""
109 return split(p)[0]
Guido van Rossumc629d341992-11-05 10:43:02 +0000110
111
Guido van Rossumc6360141990-10-13 19:23:40 +0000112# Return the longest prefix of all list elements.
Guido van Rossum7ac48781992-01-14 18:29:32 +0000113
Guido van Rossumc6360141990-10-13 19:23:40 +0000114def commonprefix(m):
Guido van Rossum346f7af1997-12-05 19:04:51 +0000115 "Given a list of pathnames, returns the longest common leading component"
116 if not m: return ''
Skip Montanaro62358312000-08-22 13:01:53 +0000117 prefix = m[0]
118 for item in m:
Guido van Rossum346f7af1997-12-05 19:04:51 +0000119 for i in range(len(prefix)):
Fred Drake8152d322000-12-12 23:20:45 +0000120 if prefix[:i+1] != item[:i+1]:
Guido van Rossum346f7af1997-12-05 19:04:51 +0000121 prefix = prefix[:i]
122 if i == 0: return ''
123 break
Skip Montanaro62358312000-08-22 13:01:53 +0000124 return prefix
Guido van Rossumc6360141990-10-13 19:23:40 +0000125
126
Guido van Rossum2bc1f8f1998-07-24 20:49:26 +0000127# Get size, mtime, atime of files.
128
129def getsize(filename):
130 """Return the size of a file, reported by os.stat()."""
Raymond Hettinger32200ae2002-06-01 19:51:15 +0000131 return os.stat(filename).st_size
Guido van Rossum2bc1f8f1998-07-24 20:49:26 +0000132
133def getmtime(filename):
134 """Return the last modification time of a file, reported by os.stat()."""
Raymond Hettinger32200ae2002-06-01 19:51:15 +0000135 return os.stat(filename).st_mtime
Guido van Rossum2bc1f8f1998-07-24 20:49:26 +0000136
137def getatime(filename):
138 """Return the last access time of a file, reported by os.stat()."""
Raymond Hettinger32200ae2002-06-01 19:51:15 +0000139 return os.stat(filename).st_atime
Guido van Rossum2bc1f8f1998-07-24 20:49:26 +0000140
Martin v. Löwis96a60e42002-12-31 13:11:54 +0000141def getctime(filename):
142 """Return the creation time of a file, reported by os.stat()."""
143 return os.stat(filename).st_ctime
Guido van Rossum2bc1f8f1998-07-24 20:49:26 +0000144
Guido van Rossum7ac48781992-01-14 18:29:32 +0000145# Is a path a symbolic link?
Guido van Rossumd3876d31996-07-23 03:47:28 +0000146# This will always return false on systems where os.lstat doesn't exist.
Guido van Rossum7ac48781992-01-14 18:29:32 +0000147
148def islink(path):
Guido van Rossum346f7af1997-12-05 19:04:51 +0000149 """Test whether a path is a symbolic link"""
150 try:
151 st = os.lstat(path)
152 except (os.error, AttributeError):
Guido van Rossum8ca162f2002-04-07 06:36:23 +0000153 return False
Raymond Hettinger32200ae2002-06-01 19:51:15 +0000154 return stat.S_ISLNK(st.st_mode)
Guido van Rossum7ac48781992-01-14 18:29:32 +0000155
156
157# Does a path exist?
158# This is false for dangling symbolic links.
159
Guido van Rossumc6360141990-10-13 19:23:40 +0000160def exists(path):
Tim Petersbc0e9102002-04-04 22:55:58 +0000161 """Test whether a path exists. Returns False for broken symbolic links"""
Guido van Rossum346f7af1997-12-05 19:04:51 +0000162 try:
163 st = os.stat(path)
164 except os.error:
Tim Petersbc0e9102002-04-04 22:55:58 +0000165 return False
166 return True
Guido van Rossumc6360141990-10-13 19:23:40 +0000167
168
Guido van Rossumd3876d31996-07-23 03:47:28 +0000169# Is a path a directory?
Guido van Rossum7ac48781992-01-14 18:29:32 +0000170# This follows symbolic links, so both islink() and isdir() can be true
171# for the same path.
172
Guido van Rossumc6360141990-10-13 19:23:40 +0000173def isdir(path):
Guido van Rossum346f7af1997-12-05 19:04:51 +0000174 """Test whether a path is a directory"""
175 try:
176 st = os.stat(path)
177 except os.error:
Guido van Rossum8ca162f2002-04-07 06:36:23 +0000178 return False
Raymond Hettinger32200ae2002-06-01 19:51:15 +0000179 return stat.S_ISDIR(st.st_mode)
Guido van Rossumc6360141990-10-13 19:23:40 +0000180
181
Guido van Rossum26847381992-03-31 18:54:35 +0000182# Is a path a regular file?
Guido van Rossumb6775db1994-08-01 11:34:53 +0000183# This follows symbolic links, so both islink() and isfile() can be true
Guido van Rossum7ac48781992-01-14 18:29:32 +0000184# for the same path.
185
186def isfile(path):
Guido van Rossum346f7af1997-12-05 19:04:51 +0000187 """Test whether a path is a regular file"""
188 try:
189 st = os.stat(path)
190 except os.error:
Guido van Rossum8ca162f2002-04-07 06:36:23 +0000191 return False
Raymond Hettinger32200ae2002-06-01 19:51:15 +0000192 return stat.S_ISREG(st.st_mode)
Guido van Rossumc6360141990-10-13 19:23:40 +0000193
194
Guido van Rossumd3778f91991-11-12 15:37:40 +0000195# Are two filenames really pointing to the same file?
Guido van Rossum7ac48781992-01-14 18:29:32 +0000196
Guido van Rossumd3778f91991-11-12 15:37:40 +0000197def samefile(f1, f2):
Guido van Rossum346f7af1997-12-05 19:04:51 +0000198 """Test whether two pathnames reference the same actual file"""
199 s1 = os.stat(f1)
200 s2 = os.stat(f2)
201 return samestat(s1, s2)
Guido van Rossumd3778f91991-11-12 15:37:40 +0000202
203
204# Are two open files really referencing the same file?
205# (Not necessarily the same file descriptor!)
Guido van Rossum7ac48781992-01-14 18:29:32 +0000206
Guido van Rossumd3778f91991-11-12 15:37:40 +0000207def sameopenfile(fp1, fp2):
Guido van Rossum346f7af1997-12-05 19:04:51 +0000208 """Test whether two open file objects reference the same file"""
209 s1 = os.fstat(fp1)
210 s2 = os.fstat(fp2)
211 return samestat(s1, s2)
Guido van Rossumd3778f91991-11-12 15:37:40 +0000212
213
214# Are two stat buffers (obtained from stat, fstat or lstat)
215# describing the same file?
Guido van Rossum7ac48781992-01-14 18:29:32 +0000216
Guido van Rossumd3778f91991-11-12 15:37:40 +0000217def samestat(s1, s2):
Guido van Rossum346f7af1997-12-05 19:04:51 +0000218 """Test whether two stat buffers reference the same file"""
Raymond Hettinger32200ae2002-06-01 19:51:15 +0000219 return s1.st_ino == s2.st_ino and \
220 s1.st_dev == s2.st_dev
Guido van Rossumc6360141990-10-13 19:23:40 +0000221
222
223# Is a path a mount point?
Guido van Rossumd3876d31996-07-23 03:47:28 +0000224# (Does this work for all UNIXes? Is it even guaranteed to work by Posix?)
Guido van Rossum7ac48781992-01-14 18:29:32 +0000225
Guido van Rossumc6360141990-10-13 19:23:40 +0000226def ismount(path):
Guido van Rossum346f7af1997-12-05 19:04:51 +0000227 """Test whether a path is a mount point"""
228 try:
229 s1 = os.stat(path)
230 s2 = os.stat(join(path, '..'))
231 except os.error:
Tim Petersbc0e9102002-04-04 22:55:58 +0000232 return False # It doesn't exist -- so not a mount point :-)
Raymond Hettinger32200ae2002-06-01 19:51:15 +0000233 dev1 = s1.st_dev
234 dev2 = s2.st_dev
Guido van Rossum346f7af1997-12-05 19:04:51 +0000235 if dev1 != dev2:
Tim Petersbc0e9102002-04-04 22:55:58 +0000236 return True # path/.. on a different device as path
Raymond Hettinger32200ae2002-06-01 19:51:15 +0000237 ino1 = s1.st_ino
238 ino2 = s2.st_ino
Guido van Rossum346f7af1997-12-05 19:04:51 +0000239 if ino1 == ino2:
Tim Petersbc0e9102002-04-04 22:55:58 +0000240 return True # path/.. is the same i-node as path
241 return False
Guido van Rossumc6360141990-10-13 19:23:40 +0000242
243
244# Directory tree walk.
Guido van Rossum7ac48781992-01-14 18:29:32 +0000245# For each directory under top (including top itself, but excluding
246# '.' and '..'), func(arg, dirname, filenames) is called, where
247# dirname is the name of the directory and filenames is the list
Guido van Rossum346f7af1997-12-05 19:04:51 +0000248# of files (and subdirectories etc.) in the directory.
Guido van Rossum7ac48781992-01-14 18:29:32 +0000249# The func may modify the filenames list, to implement a filter,
Guido van Rossumc6360141990-10-13 19:23:40 +0000250# or to impose a different order of visiting.
Guido van Rossum7ac48781992-01-14 18:29:32 +0000251
Guido van Rossumc6360141990-10-13 19:23:40 +0000252def walk(top, func, arg):
Tim Peterscf5e6a42001-10-10 04:16:20 +0000253 """Directory tree walk with callback function.
254
255 For each directory in the directory tree rooted at top (including top
256 itself, but excluding '.' and '..'), call func(arg, dirname, fnames).
257 dirname is the name of the directory, and fnames a list of the names of
258 the files and subdirectories in dirname (excluding '.' and '..'). func
259 may modify the fnames list in-place (e.g. via del or slice assignment),
260 and walk will only recurse into the subdirectories whose names remain in
261 fnames; this can be used to implement a filter, or to impose a specific
262 order of visiting. No semantics are defined for, or required of, arg,
263 beyond that arg is always passed to func. It can be used, e.g., to pass
264 a filename pattern, or a mutable object designed to accumulate
265 statistics. Passing None for arg is common."""
266
Guido van Rossum346f7af1997-12-05 19:04:51 +0000267 try:
268 names = os.listdir(top)
269 except os.error:
270 return
271 func(arg, top, names)
Guido van Rossum346f7af1997-12-05 19:04:51 +0000272 for name in names:
Tim Peters2344fae2001-01-15 00:50:52 +0000273 name = join(top, name)
Guido van Rossuma490d582001-04-16 18:12:04 +0000274 try:
275 st = os.lstat(name)
276 except os.error:
277 continue
Neal Norwitzec7cf132002-06-06 18:16:14 +0000278 if stat.S_ISDIR(st.st_mode):
Tim Peters2344fae2001-01-15 00:50:52 +0000279 walk(name, func, arg)
Guido van Rossum7ac48781992-01-14 18:29:32 +0000280
281
282# Expand paths beginning with '~' or '~user'.
283# '~' means $HOME; '~user' means that user's home directory.
284# If the path doesn't begin with '~', or if the user or $HOME is unknown,
285# the path is returned unchanged (leaving error reporting to whatever
286# function is called with the expanded path as argument).
287# See also module 'glob' for expansion of *, ? and [...] in pathnames.
288# (A function should also be defined to do full *sh-style environment
289# variable expansion.)
290
291def expanduser(path):
Tim Peters2344fae2001-01-15 00:50:52 +0000292 """Expand ~ and ~user constructions. If user or $HOME is unknown,
Fred Drakec0ab93e2000-09-28 16:22:52 +0000293 do nothing."""
Fred Drake8152d322000-12-12 23:20:45 +0000294 if path[:1] != '~':
Guido van Rossum346f7af1997-12-05 19:04:51 +0000295 return path
296 i, n = 1, len(path)
Fred Drake8152d322000-12-12 23:20:45 +0000297 while i < n and path[i] != '/':
Fred Drakec0ab93e2000-09-28 16:22:52 +0000298 i = i + 1
Guido van Rossum346f7af1997-12-05 19:04:51 +0000299 if i == 1:
Raymond Hettinger54f02222002-06-01 14:18:47 +0000300 if not 'HOME' in os.environ:
Neal Norwitz609ba812002-09-05 21:08:25 +0000301 import pwd
302 userhome = pwd.getpwuid(os.getuid())[5]
303 else:
304 userhome = os.environ['HOME']
Guido van Rossum346f7af1997-12-05 19:04:51 +0000305 else:
306 import pwd
307 try:
308 pwent = pwd.getpwnam(path[1:i])
309 except KeyError:
310 return path
311 userhome = pwent[5]
Fred Drakec0ab93e2000-09-28 16:22:52 +0000312 if userhome[-1:] == '/': i = i + 1
Guido van Rossum346f7af1997-12-05 19:04:51 +0000313 return userhome + path[i:]
Guido van Rossum4732ccf1992-08-09 13:54:50 +0000314
315
316# Expand paths containing shell variable substitutions.
Guido van Rossumb6775db1994-08-01 11:34:53 +0000317# This expands the forms $variable and ${variable} only.
Jeremy Hyltona05e2932000-06-28 14:48:01 +0000318# Non-existent variables are left unchanged.
Guido van Rossumb6775db1994-08-01 11:34:53 +0000319
320_varprog = None
Guido van Rossum4732ccf1992-08-09 13:54:50 +0000321
322def expandvars(path):
Guido van Rossum346f7af1997-12-05 19:04:51 +0000323 """Expand shell variables of form $var and ${var}. Unknown variables
Fred Drakec0ab93e2000-09-28 16:22:52 +0000324 are left unchanged."""
Guido van Rossum346f7af1997-12-05 19:04:51 +0000325 global _varprog
326 if '$' not in path:
327 return path
328 if not _varprog:
329 import re
330 _varprog = re.compile(r'\$(\w+|\{[^}]*\})')
331 i = 0
Guido van Rossum8ca162f2002-04-07 06:36:23 +0000332 while True:
Guido van Rossum346f7af1997-12-05 19:04:51 +0000333 m = _varprog.search(path, i)
334 if not m:
335 break
336 i, j = m.span(0)
337 name = m.group(1)
338 if name[:1] == '{' and name[-1:] == '}':
339 name = name[1:-1]
Raymond Hettinger54f02222002-06-01 14:18:47 +0000340 if name in os.environ:
Guido van Rossum346f7af1997-12-05 19:04:51 +0000341 tail = path[j:]
342 path = path[:i] + os.environ[name]
343 i = len(path)
344 path = path + tail
345 else:
346 i = j
347 return path
Guido van Rossumc629d341992-11-05 10:43:02 +0000348
349
350# Normalize a path, e.g. A//B, A/./B and A/foo/../B all become A/B.
351# It should be understood that this may change the meaning of the path
352# if it contains symbolic links!
353
354def normpath(path):
Guido van Rossum346f7af1997-12-05 19:04:51 +0000355 """Normalize path, eliminating double slashes, etc."""
Skip Montanaro018dfae2000-07-19 17:09:51 +0000356 if path == '':
357 return '.'
Marc-André Lemburgbf222c92001-01-29 11:29:44 +0000358 initial_slashes = path.startswith('/')
359 # POSIX allows one or two initial slashes, but treats three or more
360 # as single slash.
Tim Peters658cba62001-02-09 20:06:00 +0000361 if (initial_slashes and
Marc-André Lemburgbf222c92001-01-29 11:29:44 +0000362 path.startswith('//') and not path.startswith('///')):
363 initial_slashes = 2
Fred Drake22fb8392000-09-28 15:04:39 +0000364 comps = path.split('/')
Skip Montanaro018dfae2000-07-19 17:09:51 +0000365 new_comps = []
366 for comp in comps:
367 if comp in ('', '.'):
368 continue
Marc-André Lemburgbf222c92001-01-29 11:29:44 +0000369 if (comp != '..' or (not initial_slashes and not new_comps) or
Skip Montanaro018dfae2000-07-19 17:09:51 +0000370 (new_comps and new_comps[-1] == '..')):
371 new_comps.append(comp)
372 elif new_comps:
373 new_comps.pop()
374 comps = new_comps
Fred Drake22fb8392000-09-28 15:04:39 +0000375 path = '/'.join(comps)
Marc-André Lemburgbf222c92001-01-29 11:29:44 +0000376 if initial_slashes:
377 path = '/'*initial_slashes + path
Skip Montanaro018dfae2000-07-19 17:09:51 +0000378 return path or '.'
Guido van Rossume294cf61999-01-29 18:05:18 +0000379
380
Guido van Rossume294cf61999-01-29 18:05:18 +0000381def abspath(path):
Guido van Rossum54f22ed2000-02-04 15:10:34 +0000382 """Return an absolute path."""
Guido van Rossume294cf61999-01-29 18:05:18 +0000383 if not isabs(path):
384 path = join(os.getcwd(), path)
385 return normpath(path)
Guido van Rossum83eeef42001-09-17 15:16:09 +0000386
387
388# Return a canonical path (i.e. the absolute location of a file on the
389# filesystem).
390
391def realpath(filename):
392 """Return the canonical path of the specified filename, eliminating any
393symbolic links encountered in the path."""
394 filename = abspath(filename)
395
396 bits = ['/'] + filename.split('/')[1:]
397 for i in range(2, len(bits)+1):
398 component = join(*bits[0:i])
399 if islink(component):
400 resolved = os.readlink(component)
401 (dir, file) = split(component)
402 resolved = normpath(join(dir, resolved))
403 newpath = join(*([resolved] + bits[i:]))
404 return realpath(newpath)
Tim Petersb64bec32001-09-18 02:26:39 +0000405
Guido van Rossum83eeef42001-09-17 15:16:09 +0000406 return filename
Mark Hammond8696ebc2002-10-08 02:44:31 +0000407
408supports_unicode_filenames = False