I want detect that user has created a new file in atom editor and on the basis I want to call a method. I had figured out that can be done using
atom.workspace.onDidAddTextEditor(( textEditor, pane, index) => {
// Path of file added
});
In the above function I want to get the path of the file added … how can I do that??? can anyone suggest…