Drive letters are not the only Volumes
Posted: 14 Feb 2013 20:29
When I "move" a bunch of huge files from (example) C:\Media\CF\⋯ to C:\Images\Days\⋯, XYplorer does not send it to a background task, thus locking up the program for perhaps twenty minutes. C:\Media\CF is the mount point for a card reader, and C:\Images is a junction for G:\@MP\Images. But I am thinking that XYplorer just looks at the name and thinks it is a intra-volume move.
Windows has an API function to tell you which volume a file name belongs to, so you don't have to repeat that logic looking up the tree, or do it wrong and assume that only drive letters are volumes.
(In case you are wondering why my machine is set up this way: Images is a Junction because C: is a small SSD and the junction lets me keep a simple tree but put some directories on an enormous drive (E:) or a redundant RAID-5 system (G:), or even move the underlying home around without affecting programs. That's why Junctions were provided and promoted in Windows NT in the first place. Meanwhile, I don't want to consume four drive letters for my multi-card reader, expecially when most of them are rarely or never used. So I have mounting points to show directories for CF, SD, MS, xD instead of drive letters.)
Windows has an API function to tell you which volume a file name belongs to, so you don't have to repeat that logic looking up the tree, or do it wrong and assume that only drive letters are volumes.
(In case you are wondering why my machine is set up this way: Images is a Junction because C: is a small SSD and the junction lets me keep a simple tree but put some directories on an enormous drive (E:) or a redundant RAID-5 system (G:), or even move the underlying home around without affecting programs. That's why Junctions were provided and promoted in Windows NT in the first place. Meanwhile, I don't want to consume four drive letters for my multi-card reader, expecially when most of them are rarely or never used. So I have mounting points to show directories for CF, SD, MS, xD instead of drive letters.)