Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. const path = require('path')
  2. const fs = require('fs')
  3.  
  4. const dirpath = '/your/path/here'
  5.  
  6. fs.readdir(dirname, function(err, files) {
  7. files.forEach(fname => {
  8. if (fname.startsWith('BF_')) {
  9. //DO SOMETHING!!!
  10. }
  11. })
  12. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement