• Leif Christian posted an update 2 years, 1 month ago

    const fs = require(‘fs’);
    const path = require(‘path’);

    // Function to get current filenames
    // in directory with specific extension
    files = fs.readdirSync(__dirname);

    console.log(“\Filenames with the .md extension:”);
    files.forEach(file => {
    if (path.extname(file) == “.md”)
    console.log(file);
    })

Copyright 2017 PocketDesk Inc.
or

Log in with your credentials

Forgot your details?