Re: Enhanced dir() function

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

My main use for attributes is:

DirList = dir()
for i=1 to length(DirList) do
  if find('d', DirList[i][D_ATTRIB]) then
    -- Do something
  end for
end for


In this case adding extra attribs, don't break the code.  
Is the same if the string is "d" or "dhaxyz"

Of course some people will use different things, like 
read each character of the string to set flags on-off, 
in this case they must to include in the code 
instructions to ignore unknow attribs.

Linux users currently only get info about 'd' attrib,
they would like to get a unix style chmod sequence like:

"drwxr-x---" 

In this case the position of the char changes the sense.


+-+-+-+-+-+-+-+
Marco A. Achury
Caracas, Venezuela

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

Search



Quick Links

User menu

Not signed in.

Misc Menu