user197967
user197967

Reputation:

Synchronize folders using C

I want to synchronize the contents of two folders using C. I don't have any line of code, I simple want someone to suggest a good tutorial to start with.

Upvotes: 0

Views: 2168

Answers (3)

Thomas Matthews
Thomas Matthews

Reputation: 57729

I suggest not writing code, but using Sync Butler.

Otherwise you may want to search the Boost library for any platform independent methods for accessing folders (since you didn't tell us which OS or platform you are using).

Upvotes: 0

bta
bta

Reputation: 45077

First of all, there is no 'C' way to do this. You will need to use platform-dependent filesystem functions. What OS are you running?

On Linux systems, try opendir and friends (from dirent.h).

On Windows systems, try this listing of Win32 File Management functions.

Upvotes: 2

Doug Currie
Doug Currie

Reputation: 41200

You need to learn about dirent.h and stat. Googling for those I found this link.

Upvotes: 0

Related Questions