question: public void addScripts ( final String directory ) { final List < File > files = new ArrayList < File > ( ) ; if ( directory != null && ! directory . isEmpty ( ) ) { files . addAll ( FileUtils . getFileNamesForDirectory ( directory , SCRIPT_EXTENSION ) ) ; } else { logger . error ( "Given directory is empty" ) ; } populateScriptsFromFileList ( files ) ; }
target:  Adds scripts from the given directory.