Put file from `stdin`
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 209
- PR merge metrics
- No merged PRs in 30d
Description
Is it possible to read file from `stdin` with `put`? Since `s3cmd` supports that I tried something like that with `s4cmd` but got error:
```bash
~$ echo foo | s4cmd --endpoint-url https://s3.example.net put - s3://bucketname/test
[OSError] 2: No such file or directory
[Thread Failure] [Errno 2] No such file or directory: '-'
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the CLI's `put` handling for the `-` source shown in the issue and inspect how it opens the input path. Confirm the expected behavior with the demonstrated `echo foo | s4cmd ... put - s3://bucketname/test` command; done means stdin is accepted and uploaded to the requested S3 destination without the current file-not-found error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100