I have been looking for a way to transfer everything in a specific directory (sub directories and files alike) from a server to a client. The transfer is done one file at a time.
hence, my questions are:
- Sender side: I am planning on using the link below to list all files and to send them. Is there a faster way to do it (using some functions?) than doing it manually?
How to recursively list directories in C on Linux?
- Receiver side: once the files are received, how can I reassemble the files in their respective folders? is there a better way than sending the paths and create the appropriate folders?
- How these server/client file transfers like FTP are usually handled in c ? Is it implemented like the way I described earlier?
All in all, what I want to know is how the directory tree are sent & received in file transfer protocols and what libraries are used in c.
Thanks a lot!