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

consistent name for 'dir' type