Enhancement: Debug function for file-size
Hi :)
The problem is: I uploaded a big file (~1GB) to ownCloud (4.5.4) via desktop client. OwnCloud writes a wrong file-size to database. (the file was shown as ~1GB in the folder but the top-level folders showed ~800MB)
By using the reScan-App it delets every dir-/file-size... I already wrote a patch for this problem: https://github.com/owncloud/mirall/issues/138#issuecomment-10982728 But it works not completly because after using reScan everything is like before.
So a function for correcting file-sizes would be great!
This seems the same as #698, where the modified size is not propagated to the top folders. Is that so?
I don't know but I think not. It would be very inefficient to get every filesize/dirsize on the fly via php-filesize() (like in my recursiv function https://github.com/owncloud/mirall/issues/138#issuecomment-10982728). OwnCloud gets this data from database, doesn't it? (in #698 we don't get the timestamp from the database but from mtime on the fly. If I understand correctly... sry, my english is bad :P) So I think the problem is based on database and not only bounded to the top folders. I think the other issue (#138) could be the same problem, like this issue. But I don't know... (I haven't checked the ownCloud architecture in details till now ;) )
By the way, most of the changed files (filesize: 0Byte) are history-files which do not exist (I checked the path)... So I deleted them from MySQL... that was a bad idea... the existing files in the same folder will not displayed in this folder now... (maybe because the history-files were from this files. Sorry, I don't know - haven't done a backup :( ) The files are still on the server but I think I must upload them again...
@icewind1991 any idea on this, or who could know?
@jancborchardt I have no idea why the size of individual files can be wrong