directory or file?

From: 3dsman (3dsman_at_free.fr)
Date: 10/18/04


Date: Mon, 18 Oct 2004 12:24:27 +0200

hi!
i'm making a fileselect dialog box but i've a problem: how to know if a
path represent a file or a directory?
i'm using : readdir, opendir and closedir to browse dir

thank you for answer

-- 
Ceci est une signature automatique de MesNews.
Site : http://mesnews.no-ip.com


Relevant Pages

  • Re: opendir function.
    ... on betterwith the successive execution of the script ... readdir() in list context should be slightly faster than in scalar ... If your overall algorithm calls opendir() multiple times to descend ... closedir $dh; ...
    (comp.lang.perl.misc)
  • Re: Removing all files inside a directory in Linux using an API call from a C Code
    ... Aditya wrote: ... defeats the purpose. ... That's what readdir() is for. ... Like I said, open the directory file with opendir(), read it's contents ...
    (comp.unix.programmer)
  • Re: Directory reading
    ... As proposed by others, the functions opendir(), readdir() and ... closedir() are the way to read a directory under Linux/UNIX/Bsd. ...
    (comp.lang.c)
  • Re: String searching in a FILE*
    ... opendir(), readdir(), and closedir() than to use popen, fread(), and pclose. ...
    (comp.lang.c)
  • Re: opendir and readdir vs glob iteration
    ... > Under what circumstances (and in what manner) would it be advantageous ... opendir and readdir are somewhat more memory efficient, ... Xho ...
    (comp.lang.perl.misc)