Skip to content

Conversation

@nealrichardson
Copy link
Member

@nealrichardson nealrichardson commented Oct 5, 2020

  • Use SubTreeFileSystem class to represent a filesystem+path (since that's what it contains already) and wire that up in the file/dataset reader/writer functions that in a recent PR all got a filesystem argument added to their signatures (removing the extra argument). Add FileSystem$path(string) helper method to create a STFS, and recommend that as the way to pass a filesystem+path to those functions. I recognize that this is an abuse of STFS and will revisit in the future (ARROW-10254), but for now, this yields an improved interface.
  • Add s3_bucket() as a function to create a STFS containing an S3FileSystem and the bucket's path, which also takes advantage of FileSystemFromUri's ability to auto-detect the bucket's region while also allowing you to specify extra S3Options for authentication etc.
  • Revise copy_files() to take these inputs
  • FileSystem$ls() as convenience over FileSelector + GetFileInfo etc.
  • Update vignettes to reflect these interfaces

@github-actions
Copy link

github-actions bot commented Oct 5, 2020

Copy link
Member

@bkietz bkietz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a nice improvement in concision. A few comments and lots of wording suggestions

@nealrichardson nealrichardson marked this pull request as ready for review October 9, 2020 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants