Skip to content

Fix incorrect copying of tempdir to app-dist during add_version#134

Open
gyf9835 wants to merge 1 commit intoEugeny:masterfrom
gyf9835:patch-2
Open

Fix incorrect copying of tempdir to app-dist during add_version#134
gyf9835 wants to merge 1 commit intoEugeny:masterfrom
gyf9835:patch-2

Conversation

@gyf9835
Copy link
Copy Markdown
Contributor

@gyf9835 gyf9835 commented Nov 24, 2024

Problem Description

When copying files from the temporary directory to the target location using fs.put(str(tempdir), target, recursive=True), the temporary directory itself (e.g., /tmp/tmp7w4ldc08) is included in the target path. As a result, files are copied into {target}/tmp7w4ldc08 instead of directly into {target}.

Cause Analysis

The fs.put() function copies the specified source path (in this case, tempdir) and its entire structure to the destination. This behavior includes the temporary directory's name in the copied path, resulting in an undesired directory structure.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant