# \[F\] Drag from DVD drive is always Add Directory!

**URL:** https://community.mp3tag.de/t/f-drag-from-dvd-drive-is-always-add-directory/8755
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [August 10, 2009, 10:28pm UTC](https://community.mp3tag.de/t/f-drag-from-dvd-drive-is-always-add-directory/8755 "2009-08-10T22:28:58Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [August 10, 2009, 10:28pm UTC](https://community.mp3tag.de/t/f-drag-from-dvd-drive-is-always-add-directory/8755/1 "2009-08-10T22:28:58Z")

</div>

If I drag (not SHIFT drag) a DVD drive letter (containing MP3s) in Win XP SP2 Explorer to Mp3tag, the cursor shows a plus sign and the operation is an Add Directory rather than the normal Change Directory. Holding SHIFT or CTRL does not change this.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [August 11, 2009, 8:27am UTC](https://community.mp3tag.de/t/f-drag-from-dvd-drive-is-always-add-directory/8755/2 "2009-08-11T08:27:00Z")

</div>

Be aware of the implied read only attribute of files stored on an optical medium.

DD.20090811.1226.CEST

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [August 11, 2009, 10:18am UTC](https://community.mp3tag.de/t/f-drag-from-dvd-drive-is-always-add-directory/8755/3 "2009-08-11T10:18:30Z")

</div>

> Be aware of the implied read only attribute of files stored on an optical medium.

I am thanks, but perhaps Mp3tag is not i.e. is misinterpreting this as if it should have same effect on Mp3tag Change/Add Directory as it does on Explorer Move/Copy File.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [August 11, 2009, 10:41am UTC](https://community.mp3tag.de/t/f-drag-from-dvd-drive-is-always-add-directory/8755/4 "2009-08-11T10:41:15Z")

</div>

I think ... Mp3tag is not able to create temp files on a DVD (other apps too), so it is only possible to copy files from a read only medium (therefore the plus symbol when dragging), even it cannot be possible to set the "working-dir" to a folder on a read only medium.

DD.20090811.1442.CEST

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [August 11, 2009, 11:12am UTC](https://community.mp3tag.de/t/f-drag-from-dvd-drive-is-always-add-directory/8755/5 "2009-08-11T11:12:48Z")

</div>

> I think ... Mp3tag is not able to create temp files on a DVD (other apps too)

I don't see why Mp3tag should need to make any temp files on the target drive.

> , so it is only possible to copy files from a read only medium

I don't see why Mp3tag needs to copy files. I want only to read the tags.

> (therefore the plus symbol when dragging)

That would be bad. Plus sign says "Add directory", as we can see when dragging from read/-writable drive.

> even it cannot be possible to set the "working-dir" to a folder on a read only medium.

Mp3tag does that fine here.

Thanks for the suggestions Detlev.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [August 11, 2009, 12:16pm UTC](https://community.mp3tag.de/t/f-drag-from-dvd-drive-is-always-add-directory/8755/6 "2009-08-11T12:16:33Z")

</div>

> [@chrisjj](#):
>
> ... I don't see why Mp3tag should need to make any temp files on the target drive. ...

Hmm, maybe because optical media drives uses another type of filesystem?

> [@chrisjj](#):
>
> ... Plus sign says "Add directory", as we can see when dragging from read/-writable drive. ...

The programmer can control the cursor shape, maybe use something like this ![:mt_dup:](https://community.mp3tag.de/uploads/default/original/1X/7c1cd6b9acde5e3bb33c4499aac683f918802d0a.png ":mt\_dup:") ?

> [@chrisjj](#):
>
> ...
> 
> > even it cannot be possible to set the "working-dir" to a folder on a read only medium.  
> > Mp3tag does that fine here. ...

Well it is a sort of definition what a "working folder" is and how a read only working folder resp. read only files within a read only folder should be handled. The only "work" you can do with a read only folder or read only file is to read them.  
In general the "working folder" is the folder you can reach resp set by the CD change directory command, where you can look into with the DIR . command.

Adding a plus symbol to the cursor shape is a feature of the underlying Windows drag and drop system.  
There is a similar proceeding with the cursor symbol when dragging files (adding) onto a zip archive resp. pressing shift when dragging (moving).  
Dragging a file from folder to a zip archive is not a moving process, but a multiplying process, hence the plus symbol. Same thoughts are valid for optical read only media.

DD.20090811.1615.CEST

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [August 11, 2009, 12:31pm UTC](https://community.mp3tag.de/t/f-drag-from-dvd-drive-is-always-add-directory/8755/7 "2009-08-11T12:31:46Z")

</div>

> Hmm, maybe because optical media drives uses another type of filesystem?

I think that makes no difference through the OS API that Mp3tag is using.

> Well it is a sort of definition what a "working folder" is ... In general the  
> "working folder" is the folder you can reach resp set by the CD change directory command

That's how I took it i.e. what Mp3tag calles "Current directory".

> Adding a plus symbol to the cursor shape is a feature of the underlying  
> Windows drag and drop system.

Sure, but it is under control of the receiving apop - as you can see in the case of drag from read-writable drive to Mp3tag.

> Dragging a file from folder to a zip archive is not a moving process,  
> but a multiplying process, hence the plus symbol.

Indeed Explorer uses plus symbol to show effect on source. But Mp3tag uses it to show effect on destination.

I am sure the reported issue is due to a flaw in Mp3tag's interpretation of the drag and drop notification. And it would take little time for Florian to find and fix it.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [August 12, 2009, 5:29am UTC](https://community.mp3tag.de/t/f-drag-from-dvd-drive-is-always-add-directory/8755/8 "2009-08-12T05:29:53Z")

</div>

> [@chrisjj](#):
>
> I am sure the reported issue is due to a flaw in Mp3tag's interpretation of the drag and drop notification. And it would take little time for Florian to find and fix it.

The drag and drop action is determined by a so-called drop effect which can be either move or copy. In case the user presses the Ctrl key, the drop effect is changed from the default move to copy.

Windows overwrites the drop effect reported by the application for read-only media to always be copy. Since Mp3tag performs the action based on the reported drop effect, files are always added from DVDs.

**Edit:** I certainly can workaround this by evaluating keyboard state, but still, the drop icon would be non-consistent with Mp3tag's behaviour then.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [August 12, 2009, 5:48am UTC](https://community.mp3tag.de/t/f-drag-from-dvd-drive-is-always-add-directory/8755/9 "2009-08-12T05:48:04Z")

</div>

I don't think this has do to with read-only media.  
It's because you are dragging a drive letter and you cannot move drive letters / partitions with the explorer.  
When you drag a folder from a dvd it comes as move operation to Mp3tag.

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [September 13, 2009, 11:08pm UTC](https://community.mp3tag.de/t/f-drag-from-dvd-drive-is-always-add-directory/8755/10 "2009-09-13T23:08:18Z")

</div>

> Windows overwrites the drop effect reported by the application for read-only media to  
> always be copy. Since Mp3tag performs the action based on the reported drop effect,  
> files are always added from DVDs.

Whoops! An Mp3tag design logic error, surely. Windows drop effect refers to the effect on the source ('+' = source files left in place i.e. copy) whereas Mp3tag drop effect refers to the effect on the destination ('+' = _destination_ files left in place, i.e. add). This mismatch means Mp3tag cannot use the Window drop mode as the Mp3tag drop mode.

> I certainly can workaround this by evaluating keyboard state

I think that's essential.

> but still, the drop icon would be non-consistent with Mp3tag's behaviour then.

Howabout Mp3tag change the drop icon?

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [October 23, 2009, 5:51pm UTC](https://community.mp3tag.de/t/f-drag-from-dvd-drive-is-always-add-directory/8755/11 "2009-10-23T17:51:56Z")

</div>

This should now be working with [Mp3tag v2.44e](http://developer.mp3tag.de) Development Build.

Kind regards,  
Florian

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 28, 2018, 2:02pm UTC](https://community.mp3tag.de/t/f-drag-from-dvd-drive-is-always-add-directory/8755/12 "2018-12-28T14:02:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
