Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:36 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2: type flag to DIR$

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 02:39pm 07 Jul 2020
Copy link to clipboard 
Print this post

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 States
Posts: 3378
Posted: 03:22pm 07 Jul 2020
Copy link to clipboard 
Print this post

"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 Kingdom
Posts: 10310
Posted: 03:25pm 07 Jul 2020
Copy link to clipboard 
Print this post

VOL is a manual errata, will be removed in 5.05.04 manual when released
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 03:25pm 07 Jul 2020
Copy link to clipboard 
Print this post

  lizby said  "ALL" gives me this:


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 States
Posts: 3378
Posted: 03:28pm 07 Jul 2020
Copy link to clipboard 
Print this post

  thwill said  
  lizby said  "ALL" gives me this:


On CMM2, or on Pi-cromite ?

Pi-cromite, pi-zw, buster
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 03:29pm 07 Jul 2020
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 4311
Posted: 03:30pm 07 Jul 2020
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 4311
Posted: 03:35pm 07 Jul 2020
Copy link to clipboard 
Print this post

  matherp said  VOL is a manual errata, will be removed in 5.05.04 manual when released


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
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025