[
https://issues.apache.org/jira/browse/ARROW-8406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17082256#comment-17082256
]
Krisztian Szucs commented on ARROW-8406:
----------------------------------------
{code:python}
>>> FileSystem.from_uri('D:/something.parquet')
(<pyarrow._fs.LocalFileSystem object at 0x000001D673635330>,
'D:/something.parquet')
>>> FileSystem.from_uri('D:\something.parquet')
(<pyarrow._fs.LocalFileSystem object at 0x000001D672D625B0>,
'D:/something.parquet')
>>> FileSystem.from_uri('file://D:/something.parquet')
(<pyarrow._fs.LocalFileSystem object at 0x000001D672D625B0>,
'/something.parquet')
>>> FileSystem.from_uri('file://D:\something.parquet')
(<pyarrow._fs.LocalFileSystem object at 0x000001D672D6FFB0>,
'/something.parquet')
{code}
> [Python] test_fs fails when run from a different drive on Windows
> -----------------------------------------------------------------
>
> Key: ARROW-8406
> URL: https://issues.apache.org/jira/browse/ARROW-8406
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++, Python
> Reporter: Krisztian Szucs
> Assignee: Antoine Pitrou
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.17.0
>
> Time Spent: 2.5h
> Remaining Estimate: 0h
>
> {code:python}
> path =
> "C:\Users\VssAdministrator\AppData\Local\Temp\pytest-of-VssAdministrator\pytest-0\test_construct_from_single_fil0\single-file"
> _, path = FileSystem.from_uri(path)
> path ==
> "/Users/VssAdministrator/AppData/Local/Temp/pytest-of-VssAdministrator/pytest-0/test_construct_from_single_fil0/single-file"
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)