Programmatically check whether SFTP is Setup or Due