# \[ANN\] FileCmp.jl

**URL:** <https://discourse.julialang.org/t/ann-filecmp-jl/76919>\
**Category:** Package Announcements\
**Tags:** file\
**Created:** [February 22, 2022, 4:38pm UTC](https://discourse.julialang.org/t/ann-filecmp-jl/76919 "2022-02-22T16:38:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlapeyre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jlapeyre/32/4514_2.png) [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Post date:** [February 22, 2022, 4:38pm UTC](https://discourse.julialang.org/t/ann-filecmp-jl/76919/1 "2022-02-22T16:38:43Z")

</div>

[FileCmp.jl](https://github.com/jlapeyre/FileCmp.jl) is in the General Registry.

`FileCmp.filecmp(path1, path2)` returns `true` if the files at `path1` and `path2` are byte-for-byte equal.

There was a Discourse post on this a few years ago, linked from the README linked above. It was never followed up with a package. I needed a function like this, so I put a package together

---

<div class="post-metadata">

**Author:** ![tlienart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tlienart/32/7640_2.png) [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Post date:** [February 24, 2022, 8:34am UTC](https://discourse.julialang.org/t/ann-filecmp-jl/76919/2 "2022-02-24T08:34:48Z")

</div>

I had been using Steven’s solution from [the post you’re probably referring to](https://discourse.julialang.org/t/how-to-obtain-the-result-of-a-diff-between-2-files-in-a-loop/23784/4) in Franklin and related packages, nice to see a well packaged and clean solution to use, I will definitely give it a shot, thanks!

---

<div class="post-metadata">

**Author:** ![jlapeyre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jlapeyre/32/4514_2.png) [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Post date:** [February 24, 2022, 12:14pm UTC](https://discourse.julialang.org/t/ann-filecmp-jl/76919/3 "2022-02-24T12:14:27Z")

</div>

> [@tlienart](#):
>
> I had been using Steven’s solution from [the post you’re probably referring to](https://discourse.julialang.org/t/how-to-obtain-the-result-of-a-diff-between-2-files-in-a-loop/23784/4)

Yes, that’s it.
