Skip to content
Browse files

fixed export path issues

  • Loading branch information...
1 parent b8dd561 commit b53d6dcc53faee95745086eff95de154b2ee2a07 @anti43 committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/mpv5/db/objects/User.java
View
8 src/mpv5/db/objects/User.java
@@ -100,20 +100,20 @@ public static File getSaveDir(DatabaseObject ford) {
if (s2 != null && !s2.equals("null")) {
basedir = new File(s2);
} else {
- basedir = DialogForFile.CURRENT_DIR;
+ basedir = new File(System.getProperty("user.home"));
}
File subdirs = null;
if (s != null) {
- if (s.contains("/")) {
- subdirs = new File(s.substring(0, s.lastIndexOf("/")));
- }
+ subdirs = new File(s);
}
File savedir = basedir;
if (subdirs != null) {
savedir = new File(VariablesHandler.parse(basedir.getPath() + File.separator + subdirs.getPath(), ford));
}
+
+ Log.Debug(User.class, savedir);
savedir.mkdirs();
return savedir;

0 comments on commit b53d6dc

Please sign in to comment.
Something went wrong with that request. Please try again.