changeset 531:304a8d5ad1e6 1.9.5-0

add debug code around deleting the connections file
author Carl Byington <carl@five-ten-sg.com>
date Tue, 31 Dec 2024 13:58:06 -0700
parents 693ba2314798
children 4ac13a6984d2
files app/src/main/java/com/five_ten_sg/connectbot/HostListActivity.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/src/main/java/com/five_ten_sg/connectbot/HostListActivity.java	Tue Dec 31 13:50:47 2024 -0700
+++ b/app/src/main/java/com/five_ten_sg/connectbot/HostListActivity.java	Tue Dec 31 13:58:06 2024 -0700
@@ -28,7 +28,7 @@
 import java.io.BufferedReader;
 import java.io.FileReader;
 import java.io.File;
-import java.nio.file.Files;
+import java.nio.file.*;
 import java.util.HashMap;
 import java.util.List;
 
@@ -625,7 +625,7 @@
 
             if (del) {
                 Log.d(TAG, "try to delete " + fn);
-                Files.delete(fn);
+                Files.delete(Paths.get(fn));
                 Log.d(TAG, "deleted " + fn);
             }
         }