Commit 5f7f128e authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 05981282
......@@ -7,13 +7,13 @@ init()
async function init() {
try {
await fs.mkdirSync('file1')
await fs.mkdirSync('files1')
// await fs.mkdirSync('file')
} catch (e) {
}
let files = await fs.readdirSync('file1')
let files = await fs.readdirSync('files1')
let prom = []
for (let i = 0; i < files.length; i++) {
if (files[i].includes('.csv')) {
......@@ -28,7 +28,7 @@ async function init() {
async function format(name) {
let res = await fs.readFileSync('./file1/' + name, 'utf8');
let res = await fs.readFileSync('./files1/' + name, 'utf8');
res = res.split('\n')
let newArr = []
for (let i = 0; i < res.length; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment