comparison mercurial/windows.py @ 35509:beede158ea8a

util: move getfstype() to the platform modules This makes room for implementing on Windows using ctypes.
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 30 Dec 2017 21:07:03 -0500
parents 0fa781320203
children 2062f7c2ac83
comparison
equal deleted inserted replaced
35508:9b3f95d9783d 35509:beede158ea8a
223 def checkexec(path): 223 def checkexec(path):
224 return False 224 return False
225 225
226 def checklink(path): 226 def checklink(path):
227 return False 227 return False
228
229 def getfstype(dirpath):
230 '''Get the filesystem type name from a directory (best-effort)
231
232 Returns None if we are unsure. Raises OSError on ENOENT, EPERM, etc.
233 '''
234 return None
228 235
229 def setbinary(fd): 236 def setbinary(fd):
230 # When run without console, pipes may expose invalid 237 # When run without console, pipes may expose invalid
231 # fileno(), usually set to -1. 238 # fileno(), usually set to -1.
232 fno = getattr(fd, 'fileno', None) 239 fno = getattr(fd, 'fileno', None)