Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

magic function: six_file_upload #67

Open
seankross opened this issue Apr 4, 2024 · 2 comments
Open

magic function: six_file_upload #67

seankross opened this issue Apr 4, 2024 · 2 comments
Assignees
Labels
feature ⚙️ a feature request or enhancement
Milestone

Comments

@seankross
Copy link
Collaborator

Uploads a file to a bucket by specifying the bucket name, not a remote path. In fact maybe there should just be a six_bucket_upload that can handle files or folders as things that are upload-able, and bucket names or remote paths to specify where to put the files.

@seankross seankross added the feature ⚙️ a feature request or enhancement label Apr 4, 2024
sckott added a commit that referenced this issue Apr 5, 2024
- as part of addressing six_file_upload, reworked s3 connection acquisition for paws and s3fs
- rework tests to work with new s3 connection
- rename random_str to random_db_id_str
@sckott
Copy link
Member

sckott commented Apr 5, 2024

@seankross six_file_upload added.

For six_bucket_upload do you mean like:

# allow a combination of files and directories of files

# let us figure out the paths in the bucket
six_bucket_upload(
    c("file.txt", "some-folder/", "anotherfile.csv"),
    "some-bucket"
)

# or give paths for where the uploads should live in the bucket
six_bucket_upload(
    c("file.txt", "some-folder/", "anotherfile.csv"),
    # each path below would have to have the bucket in the beginning of the string
    c("some-bucket/the-file.txt", "some-bucket/a-different-folder-name/", "some-bucket/anotherfile.txt")
)

@sckott sckott added this to the v0.1 milestone Apr 8, 2024
@sckott sckott modified the milestones: v0.1, v0.2 Apr 9, 2024
@sckott
Copy link
Member

sckott commented Apr 9, 2024

draft function six_bucket_upload is on branch https://github.com/getwilds/sixtyfour/tree/six-bucket-upload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature ⚙️ a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants