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

Check if a file was actually copied when copying a file #6445

Merged
merged 2 commits into from Oct 20, 2014
Merged

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Oct 14, 2014

refs #6444

It will compare source file with destination and trigger an exception if the content does not match. It uses md5_file which basically gets the content of the file and builds a md5 hash on it. We could compare directly but thought using this might use less memory etc (have not tested it and memory might not even be a problem but they all do the same in the end)

@mattab feel free to merge. Not sure if it will prevent such issues in the future or whether there are any side effects but should work. Maybe you can release a new beta and we can see? Only checking PHP files as they are most critical and for faster performance / less memory.

…and whether they have same content. Wondering about problems re using different filesystems for tmp and other directories and whether opcache causes any problems but should not
mattab pushed a commit that referenced this pull request Oct 20, 2014
Check if a file was actually copied when copying a file
@mattab mattab merged commit c53920b into master Oct 20, 2014
mattab pushed a commit that referenced this pull request Oct 20, 2014
@mnapoli mnapoli deleted the fileCopyCheck branch November 13, 2014 22:18
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.

None yet

2 participants