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

File Diffy doesn't work #70

Open
busebse opened this issue May 10, 2016 · 1 comment
Open

File Diffy doesn't work #70

busebse opened this issue May 10, 2016 · 1 comment

Comments

@busebse
Copy link

busebse commented May 10, 2016

I tried to run this command:
puts Diffy::Diff.new('/tmp/foo', '/tmp/bar', :source => 'files') (i put foo and bar folders into tmp). But it gets this error messages.

Error messages:
image

@samg
Copy link
Owner

samg commented May 11, 2016

From the looks of the error message it seems like ldiff isn't able to find the files based on the paths you're providing. It's possible this is related to the fact that you're running on Windows (in general it's harder to get Ruby stuff to work on Windows). You may need to specify the file paths in a Windows specific way, for example 'C:/tmp/foo' or 'C:\tmp\foo'. I don't have a windows setup to test on, but most likely you'll want to specify the file paths the same way as if you were passing them as arguments to ldiff on the command line.

Also you stated that you put foo and bar folders in tmp. You'll want to make sure that the paths you're passing diffy refer to files and not directories. Diffy doesn't have the ability to diff directories built in.

Hope that helps.

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

No branches or pull requests

2 participants