chadnetzer / hardlinkable Goto Github PK
View Code? Open in Web Editor NEWA tool to scan directories and report on the space that could be saved by hardlinking identical files. It can also perform the linking. Written in Go.
License: MIT License
A tool to scan directories and report on the space that could be saved by hardlinking identical files. It can also perform the linking. Written in Go.
License: MIT License
Would be helpful to my use case to have an option to reverse the default "newest" behavior to have the program link instead against the oldest candidate.
Is this something you'd consider adding?
Seem like it'd be a customization or duplication of your code here:
Lines 55 to 81 in 29ad3a2
Edit: note to add that this would be an additional option; keep the current behavior as your preferred default
In the following golang/go commit by Rob Pike:
golang/go@7c2718b
golang/go#27818
it is demonstrated that for Go Read() errors with a non-zero byte count, it is
important to first process the returned bytes. In particular an EOF can be
returned with a non-zero read. This is documented for the io.Reader
interface, but not mentioned for the os.File type (and in fact implies
otherwise, imo).
In any case, our readerContentsEqual() func should probably be made to only
accept *os.File, instead of reader interfaces, because we specifically only
intend to support file comparisons. Further, adjusting the processing to
support the wording of the io.Reader() docs and the above example is probably
preferred; perform the comparison of any bytes returned before handling the
Read() error conditions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.