kuking / lsha Goto Github PK
View Code? Open in Web Editor NEWlsha = ls + sha
License: GNU General Public License v3.0
lsha = ls + sha
License: GNU General Public License v3.0
and probably split into different .rs files.
Developt a script that creates a few mock files & folders and its tests lsha output with different parameters.
It would be nice include this automatic testing within the cargo 'chain' or at least Travis.
Considering two folders with thousand files in each, in order to figure out exactly which file/folder differs between the two file trees; it will be useful to display the ongoing sha-256 calculation... therefore when diffing the output of the two folders we can tell exactly which file differs (and renders the two folders to have different lsha output)
i.e.
$ lsha -r folder1
file1 ...1234
file2 ...ab32
file3 ...aacc
lsha-256 ...aabc
$ lsha -r folder2
file1 ...1234
file2 ...0000
file3 ...1111
lsha-256 ...cdef
In prev. example file2 differs between folder1 and folder2.
At the moment is absent, it should fail 'better' i.e. explaning what went wrong.
At the moment it does some naughty path concatenations with / and other sorts. It would probably be better to use Path objects and leave the task to a well implemented class.
I noticed code could be improved with some if-let instead of matches, further info: rust-lang/rfcs#160
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.