- Timestamp:
- 03/25/19 15:41:36 (5 years ago)
- Location:
- trunk/src/org/expeditee
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/auth/Actions.java
r1270 r1271 54 54 import org.expeditee.gui.FrameIO; 55 55 import org.expeditee.gui.MessageBay; 56 import org.expeditee.io.ExpReader; 56 57 import org.expeditee.items.Item; 57 58 import org.expeditee.items.PermissionPair; … … 465 466 // migrate credentials frame 466 467 Frame credentialsFrame = FrameIO.LoadFrame(username + Authenticator.CREDENTIALS_FRAME); 467 FrameIO.migrateFrame(credentialsFrame, Paths.get(credentialsDir.getAbsolutePath()).resolve(Authenticator.CREDENTIALS_FRAME + ".exp")); 468 Path destinationDirectory = Paths.get(credentialsDir.getAbsolutePath()); 469 Path destinationFile = destinationDirectory.resolve(Authenticator.CREDENTIALS_FRAME + ExpReader.EXTENTION); 470 FrameIO.migrateFrame(credentialsFrame, destinationFile); 468 471 // outbox 469 472 Connection c = DriverManager.getConnection("jdbc:sqlite:" + credentialsDir.getAbsolutePath() + File.separator + "expmail.db"); -
trunk/src/org/expeditee/gui/FrameIO.java
r1270 r1271 1950 1950 String destination = source.relativize(destinationDirectory).toString().substring(3).replace(File.separator, "/"); 1951 1951 try { 1952 copyFileTree(source, destinationDirectory);1952 Files.move(source, destinationDirectory); 1953 1953 } catch (IOException e) { 1954 1954 System.err.println("FrameIO::migrateFrame: failed to migrate from to new location. Message: " + e.getMessage());
Note:
See TracChangeset
for help on using the changeset viewer.