Consistent name for dir type
Merge pull request #27 from EasonLiao/dir_name

consistent name for 'dir' type
Add zero padding to hex checksum.