- Scans <rc.data.location>/hooks for files on initialize.
This commit is contained in:
Paul Beckingham 2014-05-13 17:12:30 -04:00
parent cc112aeec7
commit 12a2012f20
2 changed files with 8 additions and 1 deletions

View file

@ -43,7 +43,10 @@ Hooks::~Hooks ()
////////////////////////////////////////////////////////////////////////////////
void Hooks::initialize ()
{
// TODO Scan <rc.data.location>/hooks
// Scan <rc.data.location>/hooks
Directory d (context.config.get ("data.location"));
if (d.cd ("hooks"))
_scripts = d.list ();
}
////////////////////////////////////////////////////////////////////////////////