mirror of
https://github.com/developersu/ns-usbloader.git
synced 2025-05-14 07:04:50 -04:00
Rally fix #81
This commit is contained in:
parent
5e5a774e34
commit
953dcb50cb
1 changed files with 4 additions and 2 deletions
|
@ -28,8 +28,10 @@ public class FilesHelper {
|
||||||
Path locationAsPath = Paths.get(location);
|
Path locationAsPath = Paths.get(location);
|
||||||
if (Files.notExists(locationAsPath) || Files.isRegularFile(locationAsPath))
|
if (Files.notExists(locationAsPath) || Files.isRegularFile(locationAsPath))
|
||||||
return System.getProperty("user.home");
|
return System.getProperty("user.home");
|
||||||
|
return location;
|
||||||
|
}
|
||||||
|
catch (Exception ignored){
|
||||||
|
return System.getProperty("user.home");
|
||||||
}
|
}
|
||||||
catch (Exception ignored){}
|
|
||||||
return location;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue