in reply to Re: Re: reading files and directories
in thread reading files and directories

Switched what around? readdir will return the files in the actual order they are in the directory. AFAIK, most OS's don't give you any control over the actual order (though filesystems based on btrees (NTFS?) will have an automatic order.)
  • Comment on Re: Re: Re: reading files and directories

Replies are listed 'Best First'.
Re: Re: Re: Re: reading files and directories
by ctp (Beadle) on Jan 08, 2004 at 02:53 UTC
    I swapped the if -d and if -T statements, but either way the directories print out after the text files.