Skip to content

cp -r <directory> -T <target> throws a StripPrefixError #7455

Description

@EnumeratedDev

Description:

Recursively copying a directory with the --no-target-directory (-T) option to another location with a different name throws a StripPrefixError

Steps to Reproduce:

  • Create a directory (i.e named temp)

  • Copy the created directory and give it a new name with the following command
    cp -r temp -T new_temp

Expected Behavior:

A new directory should be created at the target location containing the same files as the original one

Actual Behavior:

The command throws the following error:
cp: StripPrefixError(StripPrefixError(()))

Environment:

OS: Void Linux
cp version: cp 0.0.30

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions