Create New File on Disk - File API


Any example on using API, I want to create a copy of current document on disk

// Somewhere in your header
const { File } = require('atom');

// Create file
const myFile = new File('path/to/file'));


Thanks a lot, You save my life :slight_smile: , could you please answer question here as well , may be :slight_smile: