equal
deleted
inserted
replaced
1873 and not hasdriveletter(path)): |
1873 and not hasdriveletter(path)): |
1874 path = '/' + path |
1874 path = '/' + path |
1875 return path |
1875 return path |
1876 return self._origpath |
1876 return self._origpath |
1877 |
1877 |
|
1878 def islocal(self): |
|
1879 '''whether localpath will return something that posixfile can open''' |
|
1880 return (not self.scheme or self.scheme == 'file' |
|
1881 or self.scheme == 'bundle') |
|
1882 |
1878 def hasscheme(path): |
1883 def hasscheme(path): |
1879 return bool(url(path).scheme) |
1884 return bool(url(path).scheme) |
1880 |
1885 |
1881 def hasdriveletter(path): |
1886 def hasdriveletter(path): |
1882 return path and path[1:2] == ':' and path[0:1].isalpha() |
1887 return path and path[1:2] == ':' and path[0:1].isalpha() |