I searched a lot and googled a lot too but I didn't find anything...

I'm using bash on linux...

I have to download a certain folder from a ftp server (i know ftp is deprecated, can't use ftps or sftp right now btw i'm in a local network).

I want to do a sort of integrity check of the downloaded folder, which has a lot of subfolders and files, so i choose to compare folder size as a test.

I'm downloading through wget but my question is...how can I check the folder size BEFORE downloading it so that i can store the size in a file and then compare with the downloaded one? In ftp, so...

I tried with a simply curl to the parent directory but there is no size information there...

Thanks for the help!!