support path truncate
remove useless . folder
fix a stupid error
fix some errors, shorter result
Merge pull request #2 from suxpert/master

Add path truncate.