Does the 'v' in D_ATTRIBUTES ever occur?
- Posted by "Bruce M. Axtens" <bruce_axtens at SIL.ORG> May 19, 1999
- 429 views
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.