Skip to content

Feature Request: oli: copy to directory #2795

@STRRL

Description

@STRRL

Hi folks! When I use oli copy file from s3 to local, I faced this error message:

$ oli cp limithub-config://limithub/limithub-backend-dev-task-definitions.json .
Error: Unexpected (temporary) at write, context: { service: fs, path: home/strrl/temp } => is a directory, source: Is a directory (os error 21)

I am not sure it's on purpose or not.

What do you think about when target is a directory, copy to a new file with the same filename from the source?

like oli cp limithub-config://limithub/limithub-backend-dev-task-definitions.json . would create a new file with filename limithub-backend-dev-task-definitions.json in the current directory.

And I am glad to contribute to this feature, please assign it to me if it works. ❤️

Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions