Max_download_dir_size doesn't seem to work with zipped folders

I have my max_download_dir_size set to 10240 yet in Seahub I still get “Unable to download directory “XXX”: size is too large.” on something under the 10GB set size.

Am I missing something? I just can’t get this to work. The folder in question is approx ~3GB on disk. Though the sizes don’t show up in the menu in Seahub.

I’m pretty sure the error message is from this line, though I can’t see any reason why the if statement there would be failing.

Oof, issue was that seafile.conf is parsed with configparser, and inline comments are not allowed

My config had max_download_dir_size = 10240 # 10G so just silently errored…