mirror of
https://github.com/developersu/ns-usbloader.git
synced 2025-05-13 14:44:48 -04:00
Fix split-files validation. Add JUnit5 dependency on testing stage.
This commit is contained in:
parent
4cb3cbb491
commit
8771d551a4
7 changed files with 305 additions and 37 deletions
|
@ -23,10 +23,10 @@ import java.nio.file.Path;
|
|||
import java.nio.file.Paths;
|
||||
|
||||
public class FilesHelper {
|
||||
public static String getRealFolder(String path){
|
||||
Path splitMergePath = Paths.get(path);
|
||||
if (Files.notExists(splitMergePath) || Files.isRegularFile(splitMergePath))
|
||||
public static String getRealFolder(String location){
|
||||
Path locationAsPath = Paths.get(location);
|
||||
if (Files.notExists(locationAsPath) || Files.isRegularFile(locationAsPath))
|
||||
return System.getProperty("user.home");
|
||||
return path;
|
||||
return location;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue