Does the 'v' in D_ATTRIBUTES ever occur?

new topic     » topic index » view thread      » older message » newer message

G'day you lot!

What am I doing wrong here?

---------------
include file.e
object dirInfo
sequence fileInfo

for disk = 'C' to 'Z' do

   dirInfo = dir( disk & ":\\" )

   if not atom( dirInfo ) then
      for dirItem = 1 to length( dirInfo ) do
        fileInfo = dirInfo[ dirItem ]
        if find( 'v', fileInfo[ D_ATTRIBUTES ] ) then
          printf( 1, "%s: %s\n", { disk, fileInfo[ D_NAME ] } )
        end if
      end for
   end if
end for
---------------

If I read the documentation correctly, there should be a file with a 'v'
attribute somewhere in the list of files returned by dir(). So far all I get is
a big nothing.

Ideas anyone?

Bruce.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu