robfig/revel — pull request #287 by ReSc (2013-08-25 22:32:57+00:00)
Title: Don't remove the parent folders containing generated code.

This fails when other apps (ide's) are watching the folders too.

I noticed that the hot-reload removed the temp and routes directories when revel detects it needs to regenerate the code located there. On win8 64bit using liteide X18.2 that causes a 'access denied' fatal error in revel when revel recreates these directories. Probably because liteide is watching those directories for changes too and locks them somehow.

This patch makes it so revel only removes the contents of these directories, and not the directories themselves for a smooth edit-and-reload experience.

I'm a bit of a pull-request noob, and revel is my very first go experience, so please review this patch with healthy suspicion ;-)