hello people , i need help for calculating the size of a directory in
servlet.. i am currently developing a web app where i have to upload files in folders. but what i want is that users must be only able to upload 1GB files.. if the directory has been 1GB full, then the user should not be able to upload to that folder.. I am sending my
uploading servlet code , now what code should i write for calculating the directory size inside this servlet ?? Please help
i need to calculate the size in bytes so that i can place a if-else statement later for upload..