FTP Folder size

Hi,

I need to know the size of a FTP folder. I’m trying to enumerate all the elements in the folder a get the size of each one but it doesn’t work with subfolders. The size of the files inside the FTP folder is correct but the size of the subfolders is always 0. Does anyone know how to do this?

Thank you in advance,
Maria

@mmarcos

I guess the You need to recursively call the sub folders also and check the sizes of files inside it

Cheers

But the subfolders also have other subfolders so there is no limit… I think this is not an option

@mmarcos

As of now as the folder sizes wont come…we have to go in…recursion is to do kind of these scenarios only…to go till the final child and then come back to the first parent

Cheers