public static void migratePrivateKeys() { File oldDir = FsUtils.getDir("ssh"); if (oldDir.exists()) { try { FileUtils.copyDirectory(oldDir, getPrivateKeyFolder()); FileUtils.deleteDirectory(oldDir); } catch (IOException ex) { ex.printStackTrace(); } } }
public static File getPublicKeyFolder() { return FsUtils.getInternalDir("sshpub"); }
public static File getPrivateKeyFolder() { return FsUtils.getInternalDir("ssh"); }