Skip to content

put() inconsistent with cp #882

@kamalsharma2

Description

@kamalsharma2

The behavior of put is not consistent with the linux command cp. When we have source and target paths like
source : "path1/file1.txt"
target : "path2/"
and Target directory already exists, then with linux command cp -r path1/* path2, we get
target : "path2/file1.txt"
However, doing the same with fs.put("path1/*","path2",recursive=True), we get
target : "path2/path1/file1.txt"

To remove this inconsistency, '/*' case should be handled in put()

Metadata

Metadata

Assignees

No one assigned

    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