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

os.comparefiles function #787

Merged
merged 3 commits into from
May 25, 2017
Merged

os.comparefiles function #787

merged 3 commits into from
May 25, 2017

Conversation

SirLynix
Copy link
Contributor

Hi again,

Here's a function I had to write two times at my job in Lua: os.comparefiles, returns true if two files are identical by content.

My main use of this is to synchronize big files from one directory (build output) to the other (thirdparty repository).

Of course, it is unicode-aware on Windows.

secondFile = fopen(secondPath, "rb");
#endif


Copy link
Contributor Author

@SirLynix SirLynix May 18, 2017

Choose a reason for hiding this comment

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

Damn, I forgot to check if the files have been successfully opened, hold my beer.

@tvandijck tvandijck merged commit 1cddb0d into premake:master May 25, 2017
This pull request was closed.
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.

2 participants