Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #6236

Re: file list order OS_GBPB

From Bob Latham <bob@sick-of-spam.invalid>
Subject Re: file list order OS_GBPB
Newsgroups comp.sys.acorn.programmer
Message-ID <58e784f9c5bob@sick-of-spam.invalid> (permalink)
References <58e77aed9dbob@sick-of-spam.invalid> <rskkgm$ddb$1@dont-email.me>
Organization None
Date 2020-12-31 14:28 +0000

Show all headers | View raw


In article <rskkgm$ddb$1@dont-email.me>,
   druck <news@druck.org.uk> wrote:
> On 31/12/2020 12:39, Bob Latham wrote:
> > I'm writing a routine to scan the text files in a directory and make
> > some small changes. What I would like to know is, what file
> > operations will change the order the files are presented as in R4
> > such that I need to scan again from R4=0 to avoid missing a file.
> > 
> > I am changing the file name, by adding /txt, changing the line
> > endings from  LF to CR-LF and finally restoring the time stamp.

> I wouldn't do any operations on a directory while scanning it. Get
> a list of all the files you are interested in from the scan, then
> fiddle with the files afterwards.

I can see the logic in that.

> > Or will none of that change the order?

> Anything altering just the file's data such as CR/LF changes wont
> affect anything in the directory, but renaming files might,
> depending on the underlying filing system. Filecore plays nice,
> others may not.

Thanks Dave

Cheers,

Bob.

-- 
Bob Latham
Stourbridge, West Midlands

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

file list order OS_GBPB Bob Latham <bob@sick-of-spam.invalid> - 2020-12-31 12:39 +0000
  Re: file list order OS_GBPB Gerald Holdsworth <nospam@hollypops.co.uk> - 2020-12-31 13:00 +0000
    Re: file list order OS_GBPB Bob Latham <bob@sick-of-spam.invalid> - 2020-12-31 13:15 +0000
  Re: file list order OS_GBPB "John Williams (News)" <UCEbin@tiscali.co.uk> - 2020-12-31 13:01 +0000
    Re: file list order OS_GBPB Bob Latham <bob@sick-of-spam.invalid> - 2020-12-31 13:27 +0000
  Re: file list order OS_GBPB Martin <News03@avisoft.f9.co.uk> - 2020-12-31 13:41 +0000
    Re: file list order OS_GBPB Bob Latham <bob@sick-of-spam.invalid> - 2020-12-31 14:26 +0000
  Re: file list order OS_GBPB druck <news@druck.org.uk> - 2020-12-31 13:42 +0000
    Re: file list order OS_GBPB Bob Latham <bob@sick-of-spam.invalid> - 2020-12-31 14:28 +0000

csiph-web