Show More
@@ -305,6 +305,13 b' def checkosfilename(path):' | |||||
305 | Returns None if the path is ok, or a UI string describing the problem.''' |
|
305 | Returns None if the path is ok, or a UI string describing the problem.''' | |
306 | return None # on posix platforms, every path is ok |
|
306 | return None # on posix platforms, every path is ok | |
307 |
|
307 | |||
|
308 | def getfsmountpoint(dirpath): | |||
|
309 | '''Get the filesystem mount point from a directory (best-effort) | |||
|
310 | ||||
|
311 | Returns None if we are unsure. Raises OSError on ENOENT, EPERM, etc. | |||
|
312 | ''' | |||
|
313 | return getattr(osutil, 'getfsmountpoint', lambda x: None)(dirpath) | |||
|
314 | ||||
308 | def getfstype(dirpath): |
|
315 | def getfstype(dirpath): | |
309 | '''Get the filesystem type name from a directory (best-effort) |
|
316 | '''Get the filesystem type name from a directory (best-effort) | |
310 |
|
317 |
@@ -109,6 +109,7 b' executablepath = platform.executablepath' | |||||
109 | expandglobs = platform.expandglobs |
|
109 | expandglobs = platform.expandglobs | |
110 | explainexit = platform.explainexit |
|
110 | explainexit = platform.explainexit | |
111 | findexe = platform.findexe |
|
111 | findexe = platform.findexe | |
|
112 | getfsmountpoint = platform.getfsmountpoint | |||
112 | getfstype = platform.getfstype |
|
113 | getfstype = platform.getfstype | |
113 | gethgcmd = platform.gethgcmd |
|
114 | gethgcmd = platform.gethgcmd | |
114 | getuser = platform.getuser |
|
115 | getuser = platform.getuser |
@@ -32,6 +32,7 b' except ImportError:' | |||||
32 | osutil = policy.importmod(r'osutil') |
|
32 | osutil = policy.importmod(r'osutil') | |
33 |
|
33 | |||
34 | executablepath = win32.executablepath |
|
34 | executablepath = win32.executablepath | |
|
35 | getfsmountpoint = win32.getvolumename | |||
35 | getfstype = win32.getfstype |
|
36 | getfstype = win32.getfstype | |
36 | getuser = win32.getuser |
|
37 | getuser = win32.getuser | |
37 | hidewindow = win32.hidewindow |
|
38 | hidewindow = win32.hidewindow |
General Comments 0
You need to be logged in to leave comments.
Login now