You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2019/12/04 21:08:00 UTC
[jira] [Commented] (ARROW-6654) [Python] Consider adding some
user-friendly conveniences to Filesystem API
[ https://issues.apache.org/jira/browse/ARROW-6654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16988219#comment-16988219 ]
Antoine Pitrou commented on ARROW-6654:
---------------------------------------
In this case we should simply allow passing a single path.
> [Python] Consider adding some user-friendly conveniences to Filesystem API
> --------------------------------------------------------------------------
>
> Key: ARROW-6654
> URL: https://issues.apache.org/jira/browse/ARROW-6654
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Python
> Reporter: Wes McKinney
> Priority: Major
> Fix For: 1.0.0
>
>
> For example:
> {code}
> In [12]: lfs.get_target_stats('/home/wesm')
> ---------------------------------------------------------------------------
> TypeError Traceback (most recent call last)
> <ipython-input-12-4a9ed5d22ce7> in <module>
> ----> 1 lfs.get_target_stats('/home/wesm')
> ~/code/arrow/python/pyarrow/_fs.pyx in pyarrow._fs.FileSystem.get_target_stats()
> 239 check_status(self.fs.GetTargetStats(paths, &stats))
> 240 else:
> --> 241 raise TypeError('Must pass either paths or a Selector')
> 242
> 243 return [FileStats.wrap(stat) for stat in stats]
> TypeError: Must pass either paths or a Selector
> {code}
> Some conveniences like {{listdir}} might be kind to the user
--
This message was sent by Atlassian Jira
(v8.3.4#803005)