arreglado ping y empezado peerdl y dirdl

This commit is contained in:
binlaab
2026-04-26 18:18:50 +02:00
parent e0eabbd9a8
commit b179408874
9 changed files with 97 additions and 26 deletions

View File

@@ -11,6 +11,7 @@ public class FileNameUtil {
* añade sufijos .1, .2, etc. hasta encontrar un nombre libre.
*/
public static Path chooseAvailableName(String baseName) {
System.out.println(baseName);
Path path = Paths.get(baseName);
int suffix = 1;
while (Files.exists(path)) {