Re: Check if a directory is empty and empty it
From: Peter Pichler (pichlo7_at_pobox.sk)
Date: 02/08/04
- Next message: Joona I Palaste: "Re: Check if a directory is empty and empty it"
- Previous message: José de Paula: "Re: calculations in C, userinterface in PHP"
- In reply to: Marcia Hon: "Check if a directory is empty and empty it"
- Next in thread: Dave Thompson: "Re: Check if a directory is empty and empty it"
- Reply: Dave Thompson: "Re: Check if a directory is empty and empty it"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 8 Feb 2004 18:35:49 -0000
"Marcia Hon" <Marcia_Hon@hotmail.com> wrote in message
news:522c3fc.0402081018.4a6bfd35@posting.google.com...
> I would like to know how the following may be accomplished in C:
>
> 1. Check if a directory is empty.
> 2. Empty the directory.
>
> Please if you know how could you state what statements in C would
accomplish this?
Marcia,
Please be aware that this newsgroup discusses the C language as defined by
the ISO standard, sometimes also refered to as ANSI C. In standard C, there
are no such things like directories. True, there are files in C, but to do
anything with them, you must know their names, so standard C is not good for
your purpose. You will need to use some language extension for your
platform. These may be different depending on whether you want to program
for DOS, Windows, OS/2, Open VM, Macintosh, Linux, Unix, DeathStation 9000
OS (in increasing order of preference).
Please consult the manual coming with your implementation or ask in a
newsgroup relevant to your compiler and/or operating system.
HTH,
Peter
- Next message: Joona I Palaste: "Re: Check if a directory is empty and empty it"
- Previous message: José de Paula: "Re: calculations in C, userinterface in PHP"
- In reply to: Marcia Hon: "Check if a directory is empty and empty it"
- Next in thread: Dave Thompson: "Re: Check if a directory is empty and empty it"
- Reply: Dave Thompson: "Re: Check if a directory is empty and empty it"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|