![]() |
Forum Index : Microcontroller and PC projects : CMM2: type flag to DIR$
Author | Message | ||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Hi folks, Two questions here: 1. What is DIR$(fspec$, VOL) for ? I know what the manual says, but what is the use-case? 2. Is there an (undocumented) DIR$(fspec$, ALL) which seems to be in the MMBasic for Raspberry Pi source ... I haven't had opportunity to try it. Regards, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
"ALL" gives me this: > list f$ = Dir$("*", ALL) Do While f$ <> "" Print f$ f$ = Dir$() Loop > run .cache .local .gnupg node_modules . .npm .node-red .config .. > "VOL" gives me this: [1] f$ = Dir$("*",VOL) Error: Invalid flag specification > DIR gives the same as ALL Edited 2020-07-08 01:26 by lizby PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
VOL is a manual errata, will be removed in 5.05.04 manual when released |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
On CMM2, or on Pi-cromite ? I assume that list for ALL includes directories and files ? Regards, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
Pi-cromite, pi-zw, buster PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Comment deleted Edited 2020-07-08 01:30 by thwill MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
OK, I've tested on CMM2 and it looks like ALL is supported but not documented in the manual that I have. Regards, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
OK. Can anyone tell me what it's use-case is on the CMM1 then as I am still intrigued. Regards, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |