master
Dmitry Isaenko 2020-11-06 22:29:09 +03:00
parent 5e5a774e34
commit 953dcb50cb
1 changed files with 4 additions and 2 deletions

View File

@ -28,8 +28,10 @@ public class FilesHelper {
Path locationAsPath = Paths.get(location);
if (Files.notExists(locationAsPath) || Files.isRegularFile(locationAsPath))
return System.getProperty("user.home");
return location;
}
catch (Exception ignored){
return System.getProperty("user.home");
}
catch (Exception ignored){}
return location;
}
}