ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hey everyone I was wondering if anyone would know an effective method to copy a folder from a source directory to a destination directoy using C++. I was thinking that using command line commands would be the most effective method but this may be flawed. I'm not looking for an answer with code I'm just looking for ideas. Thanks in advance.
Shell command is one solution. The other one is to write it in C/C++. You have opendir/readdir/closedir to deal with directories, so you can get access to every file, then open orginal one and the copy and rewrite the whole content.