function pushFile(file, query) {
        // hidden file?
        if (path.basename(file)[0] === '.') {
          // not explicitly asking for hidden files?
          if (!options.all && !(path.basename(query)[0] === '.' && path.basename(query).length > 1))
            return false;
        }
    
        if (common.platform === 'win')
          file = file.replace(/\\/g, '/');
    
        list.push(file);
        return true;
      }
function pushFile(file, query) {
        
        if (path.basename(file)[0] === '.') {
          
          if (!options.all && !(path.basename(query)[0] === '.' && path.basename(query).length > 1))
            return false;
        }
    
        if (common.platform === 'win')
          file = file.replace(/\\/g, '/');
    
        list.push(file);
        return true;
      }
function pushFile ( file , query ) { // hidden file? if ( path . basename ( file ) [ 0 ] === '.' ) { // not explicitly asking for hidden files? if ( ! options . all && ! ( path . basename ( query ) [ 0 ] === '.' && path . basename ( query ) . length > 1 ) ) return false ; } if ( common . platform === 'win' ) file = file . replace ( / \\ / g , '/' ) ; list . push ( file ) ; return true ; }
Conditionally pushes file to list - returns true if pushed, false otherwise (e.g. prevents hidden files to be included unless explicitly told so)
Conditionally pushes file to list - returns true if pushed false otherwise ( e . g . prevents hidden files to be included unless explicitly told so )