Skip to content

Conversation

@Yancey0623
Copy link
Collaborator

Fixed #192

@Yancey0623 Yancey0623 requested a review from typhoonzero June 30, 2017 03:48
}
for _, file := range files {
_, fn := path.Split(file.Name())
putFiles(path.Join(src, fn), path.Join(dest, fn))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use os.Walk to prevent large recursive calls.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean the filepath.Walk? It will list all the sub-files for the given directory, but I want to list the files hierarchy by hierarchy.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So what's the difference? We want to upload them anyway.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modify the code to un-recursion.
Done.

Copy link
Collaborator

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM++

@Yancey0623 Yancey0623 merged commit e664206 into PaddlePaddle:develop Jul 5, 2017
@Yancey0623 Yancey0623 deleted the upload_file_recursion branch July 5, 2017 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants