-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreadImages.js
More file actions
24 lines (22 loc) · 860 Bytes
/
readImages.js
File metadata and controls
24 lines (22 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var fs = require('fs')
var path = require('path')
var moment = require('moment')
// const walkSync = (dir, filelist = []) => fs.readdirSync(dir)
// .map(file => fs.statSync(path.join(dir, file)).isDirectory()
// ? walkSync(path.join(dir, file), filelist)
// : filelist.concat(path.join(dir, file))[0])
// var list = walkSync('D:/reactNative/products/Bet18/src/img/flags')
// var stream = fs.createWriteStream('D:/reactNative/products/Bet18/file.txt')
// stream.once('open', function (fd) {
// for (let each in list) {
// let splits = list[each].split('\\')
// let temp = splits[splits.length - 1]
// stream.write(temp.split('.')[0] + ' : require(' + list[each] + '),\n')
// }
// stream.end()
// })
const getCurrentTime = () => {
console.log(moment().format('DD/MM/YYYY HH:mm:ss'))
return moment().valueOf()
}
getCurrentTime();