The script is copying the folders but you are creating a 1 byte file in the directory
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 209
- PR merge metrics
- No merged PRs in 30d
Description
I am running this code:
s4cmd cp s3://f.apresenta.me/000100/ s3://f.apresenta.me/005002 --API-ACL=public-read --recursive --ignore-empty-source
And for example, it creates the file named "." To the root folder.
s3://f.apresenta.me/000100/ => s3://f.apresenta.me/005002/.
In the same command, there is the folder "banner", all the files inside it are copied, and in the end it copies a file called "banner" with 1 byte in size
s3://f.apresenta.me/000100/banner/ => s3://f.apresenta.me/005002/banner
This did not happen in script version 1, in which I used this same command
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the s4cmd cp entry point and its --recursive handling, then reproduce the shown copy from one S3 prefix to another. Check how directory-like keys such as '.' and 'banner' are treated; done means the contents are copied without creating a 1-byte object for the root or the banner directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100