Message Board


Message Board > Fenix / Bennu / Gemix / DIV > Glob function

June 16, 2007, 14:37
yonni
None
420 posts
I just looked up the glob function on the wiki, and it says that it's for looking up filenames, but does not mention directories. I just wanted to check that A) It can find directories (I'm sure it can) and B) How I would get it to return directories only. Thanks.
____________
#
June 16, 2007, 16:32
DTM
Earthling!
821 posts

Code:
loop
    temp = glob("*");
   
    if (temp == "")
        break;
    end
   
    if (fileinfo.directory)
        // temp is a directory
    end
end


(http://xzist.org/temp/fenix_ma … mands.glob.html)
____________
:o
#
June 17, 2007, 00:57
Sandman
F3n!x0r
1194 posts

Updated the Wiki and added the struct Fileinfo to the globals.
____________
BennuWiki
Yes, my avatar has grey borders in IE (so get a decent browser)
ROOFLEZ ROOFLEZ
#

Message Board > Fenix / Bennu / Gemix / DIV > Glob function

Quick reply


You must log in or register to post.
Copyright © 2005 Booleansoup.com
Questions? Comments? Bug reports? Contact us!