mirror of
https://github.com/binlaab/nanofiles.git
synced 2026-07-01 13:47:41 +02:00
arreglado ping y empezado peerdl y dirdl
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user