code: function (path, selected) {
  
                  if (!pathInFiles(path)) {
                      var file;
  
                      //if path is string, we constructthe good object
                      if (typeof path === 'string') {
                          file = {
                              name : basename(path),
                              path : path,
                              selected : selected || false
                          };
                      } else {
                          //TODO : check something ?
                          file = path;
                      }
  
                      files.push(file);
                  }
                  return files;
              }
docs: addLog
  
  Add a log file
  
  @param {String}  path        The path's file
  @param {Boolean} selected    Whether the file is selected. Default false.
  
  @return      all files