XD2031 icon indicating copy to clipboard operation
XD2031 copied to clipboard

Allow multiple dir masks / dir options

Open nils-eilers opened this issue 12 years ago • 2 comments

CBM DOS allows multiple dir masks, separated by commas.

If three files TEST, TEST1 and TEST10 would exist, LOAD"$:TEST1?,TEST" would give TEST and TEST10, but not TEST1.

Beyond that, CMD and sd2iec interpret some dir masks allowing passing of options:

=H --> include hidden files (not included by default) =T --> include time stamps =B / =D --> show only directories =P --> show partitions (IHMO not applicable for XD-2031), but =A could show what is assigned to each drive

edit 2012-05-07:

Further options for sorting the directory (alphabetically / chronologically) would be nice.

nils-eilers avatar Dec 12 '12 15:12 nils-eilers

Yes, that's a good idea. Marked it for milestone 1.0

fachat avatar Dec 12 '12 23:12 fachat

The new name parser already knows the "=" sign and should append the options after the "=" as second string after the directory name/pattern in the FS_OPEN_DR packet. It is optional though, so need to check for length of file pattern against packet length if option string follows. See fscmd.c, FS_MOVE in the big case() for how to do it (it's mandatory there, though, so length check is missing there)

fachat avatar Dec 21 '12 00:12 fachat