Re: Enhanced dir() function
- Posted by Marco Achury <achury at ca?tv.n?t> Apr 29, 2008
- 626 views
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