/**
 * BEGIN HEADER
 *
 * Contains:        Utility function
 * CVM-Role:        <none>
 * Maintainer:      Hendrik Erz
 * License:         GNU GPL v3
 *
 * Description:     This file contains a utility function to check for ignored dirs.
 *
 * END HEADER
 */ import path from "path" ; todo const ignoreDirs = [ '\.noteworthy' ] ; param { String } p return { Boolean } export function ignoreDir ( p ) { let name = path . basename ( p ) ; for ( let re of ignoreDirs ) { let regexp = new RegExp ( re , 'i' ) ; if ( regexp . test ( name ) ) { return true ; } } return false ; }