photo

spiritfly

shared this idea
7 months ago

Employees Involved

photo

SCM

Admin

Statistics

0
Comments
1
Views

Share

Tags

17
votes

New Feature: Delete Files in Folder Older Than X

I like the Overwrite feature and it is a very useful one, especially for automatic stuff like GSA SER. It constantly feeds the software with new articles, but it also won't leave it without articles at no point which is great.

The only downside about using overwrite is that it won't always overwrite all files in the folder. So some articles can get pretty old if they won't get overwritten and they would be used in GSA SER all the time feeding it with overused articles.

My suggestion is another option that will "delete files in folder older than X". I currently do this with a batch file running it as an External Program in the Article Creator Task and it works very well. However I'm finding that I use this script in all of my project tasks. So when I want to use another external script, I have to make modifications.

Under Consideration
+1 I like this idea
Official Answer
photo Employee
SCM Posted 7 months ago

Originally it was meant to be "delete files in folder" but it turns out due to the way SCM writes to folder, it doesn't actually know when to delete the files.

Remember also that the file/folder output can be dynamically generated.

Long story short, the code to delete files from folder was buggy and didn't work properly given the current code.

I think how you have it with the external script is the best choice because you know exactly what parent folder to delete.

I can revisit this one day, but so far there are bigger "features" to fry.

Leave Comment

photo