Skip to content

Create a directory with TypeScript

Advertisements
  
import * as fs from "fs"

function createDirectory(path: string): void {
    fs.mkdirSync(path)
}
See also  TypeScript code snippet - How to get the table contents from a file in python?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.