Last active
August 29, 2015 14:23
-
-
Save miclaus/4aeef22a9285e1a948d8 to your computer and use it in GitHub Desktop.
Atom package Remote-FTP .ftpignore feature command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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