- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Help Needed in C++
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2006 05:37 PM
10-30-2006 05:37 PM
Help Needed in C++
A class that do directory operation, such as
1)remove directory
2)change directory.
3)copy directory.
4) remove directory.
5)remove file from directory
6)copy particular file from one directory to another directory.
7) is directory check :-whether directory is present.
8) move directory,if directory is not present.
Can somebody help me doing,or anyone has implemented library in C++ (Linux) please share.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2006 07:01 PM
10-30-2006 07:01 PM
Re: Help Needed in C++
Is there any objection to using system(3) for 3) and 4)?
(Is there a difference between 1) and 4)?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2006 07:18 PM
10-30-2006 07:18 PM
Re: Help Needed in C++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2006 07:25 PM
10-30-2006 07:25 PM
Re: Help Needed in C++
Passing an argument to command(3) is easy but you may not want to have problems with threading and child processes.
If you are going to implement these complex operations, you may want to look at how the commands do then, by using tusc on them.
What type of performance do you need for copying a file, 6) and 3)?
I assume by 2) you mean chdir(2) and not rename(3)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2006 07:41 PM
10-30-2006 07:41 PM
Re: Help Needed in C++
Well performace is not an issue,because files r not bulky and nu of files are not much hardly 20 at max.
R u aware of some library in C++. and yeap ur right its chdir not rename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2006 08:53 PM
10-30-2006 08:53 PM
Re: Help Needed in C++
I don't know of OO APIs in C++.
Maybe projetcs like KDE or GNOME (or many of the other more lightweigt X windo managers) have implemented a C++ interface to them?
Or if you want to implement such a class yourself you could have a look at the C implementations of the FSF,
e.g.
http://ftp.gnu.org/gnu/fileutils/fileutils-4.1.tar.gz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2006 12:32 PM
10-31-2006 12:32 PM
Re: Help Needed in C++
We had used similar directory operations with C++ classes in our project. But we resorted to directory(3C) for the actual methods.
As the directory apis are pretty much standard across unix flavors, we figured it would be more easier to recompile for the different flavours than overload the unix implementations with our own methods.
HTH,
Sanjay
- Tags:
- directory