kemokemo / gckdir Goto Github PK
View Code? Open in Web Editor NEWA tool to generate a hash list of specified directory and comapare it with the target directory.
License: MIT License
A tool to generate a hash list of specified directory and comapare it with the target directory.
License: MIT License
Lines 96 to 103 in 1fb158b
The ioutil.ReadFile()
is easy to use, but this read all of the files in memory.
If you have any large files (ex. several gigabytes), the function to create hash value will be very slowly.
In some cases, gckdir
application crashes. ๐ข
Let's fix it!
In the report format, the CDN of the bootstrap is used.
But I use only a few styles. I will embed the necessary css in the template. ๐
An empty directory was supposed to be included in the hash list with the hash value "-", but it is not currently contained.
GoReleaser is awesome. I want to use this.
I will add an option that is useful when checking only the structure of files and directories.
Ignore the difference in hash value between individual files when this option is set to On.
--no-hv (no hash verification) option
I got inspiration from git's --no-ff option.
The functions of this tool are not compared, and it is verified whether it is the same as the correct answer data. Therefore, make the following changes.
Although the verification results are sorted, the list generated by the generate command is not sorted.
For this reason, the difference becomes very difficult to understand, for example, when changing the hash list and committing to the git version management system.
I want to include revision information in version information ๐
Improve speed by using goroutine for generating hash value
basic information
The result report is output in a fixed format called Result_{YYYYMMDD}-{hhmmss}.html
.
Therefore, when executing consecutively as below, there were times when file names conflicted and it was not possible to create a report.
$ ./gckdir ver --report a.json path/to/targetA
$ ./gckdir ver --report b.json path/to/targetB
In the generate
or verify
functions, errors are reported by log.Printf or log.Println.
I think that fmt.Printf or fmt.Println are better.
I think that Travis CI is good
When you deploy files and directories to directories shared by multiple software, you may want to ignore files etc placed by other software.
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.