Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gyf9835
Copy link

@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