This commit is contained in:
Dmitry Isaenko 2020-11-06 22:29:09 +03:00
parent 5e5a774e34
commit 953dcb50cb

View file

@ -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;
} }
} }