drivendataorg / drivendataorg/cloudpathlib

Copy to non-existing S3 folder path creates a file with "/" instead of file name in that folder

Open
#451 1 comment 0 reactions 0 assignees View on GitHub
design decision
Dominant language
Python
Stars
628
Forks
88
Avg merge
17h 28m
Merged PRs (30d)
2

Description

Steps to reproduce:
```python
# take an existing file
src = S3Path("s3://my-bucket/file.txt")
# and copy it into non-existent folder
dst = S3Path("s3://my-bucket/destination/")

src.copy(dst)
```

**Current behavior**

Creates a file with name `/` inside the folder `s3://my-bucket/destination/`

**Expected behavior**

The file `s3://my-bucket/destination/file.txt` is created

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.