MCPcopy Create free account
hub / github.com/apache/arrow / _filesystem_uri

Function _filesystem_uri

python/pyarrow/tests/util.py:231–237  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

229
230
231def _filesystem_uri(path):
232 # URIs on Windows must follow 'file:///C:...' or 'file:/C:...' patterns.
233 if os.name == 'nt':
234 uri = f'file:///{path}'
235 else:
236 uri = f'file://{path}'
237 return uri
238
239
240class FSProtocolClass:

Calls

no outgoing calls