bin/waterlock-auth-methods.js
function(path){
      var fullPath = []; 
      try{
        var files = fs.readdirSync(path); 
        for(var i = 0; i < files.length; i++){
          fullPath.push(path + '/' + files[i]); 
        }
        return fullPath; 
      }catch(e){
        return [];
      }
    }
function(path){
      var fullPath = []; 
      try{
        var files = fs.readdirSync(path); 
        for(var i = 0; i < files.length; i++){
          fullPath.push(path + '/' + files[i]); 
        }
        return fullPath; 
      }catch(e){
        return [];
      }
    }
function ( path ) { var fullPath = [ ] ; try { var files = fs . readdirSync ( path ) ; for ( var i = 0 ; i < files . length ; i ++ ) { fullPath . push ( path + '/' + files [ i ] ) ; } return fullPath ; } catch ( e ) { return [ ] ; } }
reads contents of directory and returns an Array
of full path strings to the files

@param  {String} path the directory path to search
@return {Array}      array of fullpath strings of every file in directory
reads contents of directory and returns an Array of full path strings to the files