This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Pages: 1 - Last Post: 25 Jan 21, 00:30 Last Post By: JeffTucker
JerryM

Posts: 48
Registered: 19-Apr-2004
Error when drag&drop file from folder to folder when file already exist
Posted: 24 Jan 21, 20:49
 
  Click to reply to this thread Reply
Hi guys !

When drag&drop (linked) files in Explore window the Java error occurs, when file with same name exist.

Please, catch error and add possibility to overwrite/skip files (with file size/date comparison) or to exit.

It happens in Photoblogger, but don't know if it is skin or general issue.

Thank You.
Greetings from eternally downlocked Austria.
Jerry


An error occured
This folder already has item named abc.jpg
Error details:

java.io.IOException: This folder already has an item named 2019.12.30_11.01.21.jpg
at se.datadosen.jalbum.AlbumObjectImpl.moveTo(AlbumObjectImpl.java:1598)
at se.datadosen.jalbum.AlbumObjectImpl.moveTo(AlbumObjectImpl.java:1585)
at se.datadosen.jalbum.AlbumObjectImpl.moveTo(AlbumObjectImpl.java:1575)
at se.datadosen.explorer.JExplorerPanel.handleJAlbumObjectDrop(JExplorerPanel.java:899)
at se.datadosen.explorer.JExplorerPanel.completeMove(JExplorerPanel.java:806)
at se.datadosen.explorer.JAlbumExplorer$20.actionPerformed(JAlbumExplorer.java:823)
at se.datadosen.util.AliasAction.actionPerformed(AliasAction.java:79)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.AbstractButton.doClick(Unknown Source)
at java.desktop/javax.swing.AbstractButton.doClick(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(Unknown Source)
at java.desktop/javax.swing.SwingUtilities.notifyAction(Unknown Source)
at java.desktop/javax.swing.JComponent.processKeyBinding(Unknown Source)
at java.desktop/javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)
at java.desktop/javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)
at java.desktop/javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)
at java.desktop/javax.swing.JMenuBar.processKeyBinding(Unknown Source)
at java.desktop/javax.swing.KeyboardManager.fireBinding(Unknown Source)
at java.desktop/javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
at java.desktop/javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
at java.desktop/javax.swing.JComponent.processKeyBindings(Unknown Source)
at java.desktop/javax.swing.JComponent.processKeyEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
RobM

Posts: 3,845
Registered: 4-Aug-2006
Re: Error when drag&drop file from folder to folder when file already exist
Posted: 24 Jan 21, 20:55   in response to: JerryM in response to: JerryM
 
  Click to reply to this thread Reply
What version of jAlbum are you using?
JerryM

Posts: 48
Registered: 19-Apr-2004
Re: Error when drag&drop file from folder to folder when file already exist
Posted: 25 Jan 21, 00:19   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Latest, of course. :)
JeffTucker

Posts: 8,225
Registered: 31-Jan-2006
Re: Error when drag&drop file from folder to folder when file already exist
Posted: 25 Jan 21, 00:30   in response to: JerryM in response to: JerryM
 
  Click to reply to this thread Reply
Same error, whether the files are linked or copied.

If you try to add an image with the same name (from outside), you get the option of replacing or keeping both. You also get those options if you copy the image, and then paste it into another folder that already has an image with that file name. Oddly, if you try to cut and paste, you get this error.

Might be nice to have, but rather an unusual use case, I would think.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums