示例#1
0
 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();
     }
   }
 }
示例#2
0
 public static File getPublicKeyFolder() {
   return FsUtils.getInternalDir("sshpub");
 }
示例#3
0
 public static File getPrivateKeyFolder() {
   return FsUtils.getInternalDir("ssh");
 }