Fix onDir not onUrl
Merge pull request #10 from alicoding/onDir

Fix onDir not onUrl