gtg092x / gulp-sftp

Gulp SFTP Deploy
140 stars 61 forks source link

Deprecating existsSync with statSync #52

Open kaiwah opened 8 years ago

kaiwah commented 8 years ago

Ran into issue of my privateKey having an incorrect path but errors only showed Authentication Error. Looks like the existsSync did not have proper error handling whereas statSync does.

However might throw error if default key locations do not exist (/.ssh/xxx)

API Reference: https://nodejs.org/api/fs.html#fs_fs_existssync_path