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

Common/FileUtil: Rename Copy() to CopyRegularFile(). #11595

Merged
merged 1 commit into from Feb 22, 2023

Conversation

AdmiralCurtiss
Copy link
Contributor

@AdmiralCurtiss AdmiralCurtiss commented Feb 22, 2023

It can only copy files, not directories, so make that clear in the name. (also so I can free up the name for a generic copy-any function)

I originally wanted to name this just CopyFile() but then realized that Windows.h has a #define for that, so that'd be probably more trouble than it's worth. If you have a better name suggestion feel free.

@shuffle2
Copy link
Contributor

as for naming, maybe CopyRegularFile (based on file_type https://en.cppreference.com/w/cpp/filesystem/file_type)
seems fine to me either way

@AdmiralCurtiss
Copy link
Contributor Author

Yes, that's definitely a better name, let's go with that.

This is to clarify that it can only copy files, not folders.
@AdmiralCurtiss AdmiralCurtiss changed the title Common/FileUtil: Rename Copy() to CopyFileOverwrite(). Common/FileUtil: Rename Copy() to CopyRegularFile(). Feb 22, 2023
@AdmiralCurtiss AdmiralCurtiss merged commit ebd9822 into dolphin-emu:master Feb 22, 2023
14 checks passed
@AdmiralCurtiss AdmiralCurtiss deleted the rename-file-copy branch February 22, 2023 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants