Skip to content
matthewkastor edited this page Feb 5, 2013 · 2 revisions
window.frame.openDialog({
    type: 'open', // Either open or save
    title: 'Open...', // Dialog title, default is window title
    multiSelect: false, // Allows multiple file selection
    dirSelect:true, // Directory selector
    initialValue:'c:\\Program Files' // Initial save or open file name. Remember to escape backslashes.
}, function( err , files ) {
    // save the file using fs module according to files array.
});