directory inventory

D

David Tuman

hi all,

im a university of michigan aerospace engineering undergrad, so i have
only limited coding experience with c++

had a question regarding how to go about writing a piece of code that
will:

-go through a specified directory
-extract: -all filenames within that directory
-all directories and their files, recursively, etc, etc
-generate a list / directory map, so to speak, of all directories /
files within the specified directory

i can organize the code to do that, but im clueless as to what the
syntax would be to extract file names / directory names from a
directory.

maybe theres a simple code already out there that does this ?

the application here is to monitor and keep track of thousands of
directories / files that are constantly being created and modified by
dozens people in a design team who dont necessarily communicate
outside their sub-teams

any help / pointing me to something or someone who can help is
appreciated

thanks,
-david
 
V

Victor Bazarov

David Tuman said:
[...] how to go about writing a piece of code that
will:

-go through a specified directory
-extract: -all filenames within that directory
[...]
any help / pointing me to something or someone who can help is
appreciated

Post this inquiry to a newsgroup that deals with your platform (OS).
There are no ways to do what you ask using just standard C++ means,
you have to use platform- (OS-) specific mechanisms.

V
 
R

red floyd

David said:
[how do I walk directory tree? question redacted for space]

Not doable in Standard C++. You might want to check the news groups
specific to your platform. E.g. comp.unix.programmer, or the equivalent
for Win32.
 
C

Christoph Rabel

David said:
-go through a specified directory
-extract: -all filenames within that directory
-all directories and their files, recursively, etc, etc
-generate a list / directory map, so to speak, of all directories /
files within the specified directory

i can organize the code to do that, but im clueless as to what the
syntax would be to extract file names / directory names from a
directory.

Hi!

http://www.boost.org/libs/filesystem/doc/index.htm

hth

Christoph
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,161
Messages
2,570,891
Members
47,423
Latest member
henerygril

Latest Threads

Top