Add ScanDirectory method.
Add directory scanning to GUI sample.