Skip to content

Instantly share code, notes, and snippets.

@miclaus
Last active August 29, 2015 14:23
Show Gist options
  • Save miclaus/4aeef22a9285e1a948d8 to your computer and use it in GitHub Desktop.
Save miclaus/4aeef22a9285e1a948d8 to your computer and use it in GitHub Desktop.
Atom package Remote-FTP .ftpignore feature command
'remote-ftp:create-ignore-file' : function ()
{
if ( ! hasProject() ) return;
FS.writeFile(
atom.project.getDirectories()[ 0 ].resolve('.ftpignore'),
'## for example, this will be ignored on sync:\n.ftpignore',
function (err)
{
if ( ! err )
atom.workspace.open(atom.project.getDirectories()[ 0 ].resolve('.ftpignore'));
}
);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment