Commit 4bcee329 authored by Cass's avatar Cass 🌊

Merge branch 'ftp' of https://gitlab.com/cxss/site into ftp

parents 498c1d32 719e1b87
File deleted
const fs = require('fs');
fs.readdir(__dirname+"/f_old/", function(err, files) {
files.forEach(file => {
var filename = file.replace(/\.[^/.]+$/, "");
var fileData = fs.readFileSync(__dirname+"/f_old/"+file, "utf8");
var fileData = `data: >\n "${fileData}"`;
fs.writeFile(`${__dirname}/f/${filename}.yml`, fileData, 'utf8', function(err) {
if (err) { console.log(err) }
console.log(`Wrote ${filename} to disk.`)
});
})
})
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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