🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.msdos.programmer
3 messages
3 total messages Started by Eric A. Raymond Sat, 02 Jan 1993 02:04
Is findfirst/findnext deterministic? (same order each time)?
#918
Author: Eric A. Raymond
Date: Sat, 02 Jan 1993 02:04
7 lines
809 bytes
Are the DOS findfirst/findnext directory functions deterministic.
That is, will they report the files in the same order for a given
disk?

A related question, is the order the files are retrieved based upon
creation order?  That is, if I create files a, b, c in that order,
Re: Is findfirst/findnext deterministic? (same order each time)?
#919
Author: Phil Howard
Date: Sat, 02 Jan 1993 07:18
15 lines
1242 bytes
raymond@kronos.arc.nasa.gov (Eric A. Raymond) writes:

>Are the DOS findfirst/findnext directory functions deterministic.
>That is, will they report the files in the same order for a given
>disk?

Not unless the files are on there in exactly the same order.  You get
the files in the order they are in the directory data blocks themselves.
I am working on a program where I want the files in a more deterministic
way, and I sort them myself.
-- 
/************************************************************************\
| Phil Howard,  pdh@netcom.com,  KA9WGN    Spell protection?  "1(911)A1" |
| "It's not broken... it's just functionally challenged" --Phil and Pete |
\************************************************************************/
Re: Is findfirst/findnext deterministic? (same order each time)?
#925
Author: Jon Freivald
Date: Sat, 02 Jan 1993 22:20
21 lines
1297 bytes
raymond@kronos.arc.nasa.gov (Eric A. Raymond) writes:

> 
> Are the DOS findfirst/findnext directory functions deterministic.
> That is, will they report the files in the same order for a given
> disk?

Depending on the order they are in the directory entry.  Remember that
this can be changed by directory sorting programs such as norton DS,
etc...

> A related question, is the order the files are retrieved based upon
> creation order?  That is, if I create files a, b, c in that order,

?  This is the end of the message as received here...

=============================================================================
                   Jon Freivald ( jaf%jaflrn@uunet.UU.NET )
	 Nothing is impossible for the man who doesn't have to do it.
		    PGP V2 public key available on request
=============================================================================
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads