Well, I'm back with yet another question. Hopefully others are finding my strange requests helpful.
In another post Forbidden showed me how to create a new results file every 1 million lines using:
[% lines = lines + p1.serp.size; USE Math; ""_ Math.int(lines / 1000000) _".txt" %]
Is it possible to modify this to create a new directory every X number of files that are saved?
I'm downloading the source for a bunch of queries and it creates many thousands of files which is hard to manage in a single directory so I want to automatically create a new directory after every 1000 or so files are downloaded.
In another post Forbidden showed me how to create a new results file every 1 million lines using:
[% lines = lines + p1.serp.size; USE Math; ""_ Math.int(lines / 1000000) _".txt" %]
Is it possible to modify this to create a new directory every X number of files that are saved?
I'm downloading the source for a bunch of queries and it creates many thousands of files which is hard to manage in a single directory so I want to automatically create a new directory after every 1000 or so files are downloaded.