XD2031
XD2031 copied to clipboard
Allow multiple dir masks / dir options
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.
Yes, that's a good idea. Marked it for milestone 1.0
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)