1541ultimate icon indicating copy to clipboard operation
1541ultimate copied to clipboard

I can't remove a DIR with "RD:dir name" command when setting a mount point inside a .dnp file. And other things.

Open radius75 opened this issue 2 years ago • 1 comments

Ultimate2+ FW3.10a

I posted this thread on FB once. Here is the right place to paste it. https://www.facebook.com/groups/ultimate64/permalink/10159872050657753/


I've noticed that I can't remove a DIR with "RD:dir name" command when setting a mount point inside a .dnp file. 
(Software IEC>Set dir. here) Interestingly, the "MD:dir name" command works inside .dnp, "S:file name" inside .dnp also works.
However, when I set the mount point to a regular folder on the flash drive, I can use both "MD:nnn" and "RD:nnn" with success.
Is it a bug?

--
Attempting to delete DIR in .dnp from Ultimate Menu, ends with error "Error: ACCESS DENIED"
Creating a DIR in .dnp using the Ultimate Menu is no problem.
The only option to delete this DIR from .dnp is to use DirMaster on PC.

--
Since .dnp is a partition image like in CMDHD, it would be useful to be able to format it 
with the "N: partition name" command (Formatting doesn't work at the moment)
Besides Ultimate and the obsolete DirMaster, where else could I use 16MB of .dnp? I couldn't find a way to mount it 
on VICE. Any hints?

--
I found a solution: The .dnp file needs to be created in Vice, emulating RamLink with 16MB Memory. 
It differs size from the .dnp file created in Ultimate or DirMaster.  Such a file can be successfully used both in Ram Link Vice, 
as a partition in Ultimate and opens in DirMaster.

Regards

radius75 avatar Apr 18 '23 07:04 radius75

Hello Radius,

From 'filesystem_d64.cc':

    // Deleting directories is not yet implemented, we should check here if the dir is empty.
    if (info.attrib & AM_DIR) {
        return FR_DENIED;
    }

So no, it's not a bug. It's simply not yet implemented.

Best regards, Gideon

GideonZ avatar Apr 18 '23 08:04 GideonZ