folder size limitation
-
Hi world, I'm want limiting a folder size. My application create some files inside this folder but I don't want exceed the desired size. Thus this application must delete older files when I want to add new file (to always respect the size limitation). Anybody have an idea to do that? Thank in advance... Hello World!!! :) from Raphaël
-
Hi world, I'm want limiting a folder size. My application create some files inside this folder but I don't want exceed the desired size. Thus this application must delete older files when I want to add new file (to always respect the size limitation). Anybody have an idea to do that? Thank in advance... Hello World!!! :) from Raphaël
U may monitor that specified folder ReadDirectoryChangesW is the API it gives u many notifications (including size change, files added etc) I hope this will help u
-
Hi world, I'm want limiting a folder size. My application create some files inside this folder but I don't want exceed the desired size. Thus this application must delete older files when I want to add new file (to always respect the size limitation). Anybody have an idea to do that? Thank in advance... Hello World!!! :) from Raphaël
Rather than handle this at the software level, why not use quotas offered by the OS? If you must attack this via software, a rough example is located here. It's specific to cookies, but you can alter the code as necessary to clean out old files.
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow