View previous topic :: View next topic |
Author |
Message |
boggy
Joined: 13 Oct 2010 Posts: 2
|
Posted: Wed Oct 13, 2010 9:47 am Post subject: creating a new subfolder for every (say) 100 files? |
|
|
hi
I'm looking for a way to distribute files to subdirectories but without any rule available from the files.
If I had 285 files, I want to put the first 100 into subfolder 1 (say), the next 100 into subfolder 2, etc.
Is this where a plugin would be used, or is there a built in way?
cheers |
|
Back to top |
|
|
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Wed Oct 13, 2010 11:54 pm Post subject: |
|
|
Hi,
Correct - there is no built-in way to do what you ask. A plugin would be required.
Peter. |
|
Back to top |
|
|
boggy
Joined: 13 Oct 2010 Posts: 2
|
Posted: Thu Oct 14, 2010 8:23 am Post subject: |
|
|
Hi
Thanks for confirming that.
Would it be possible to use a digit or digits from a file's timestamp for creation etc as a randomising field. That would create up to 60 sub folders or even more if I combined multiple digits e.g. from a timestamp 13:45:48 there are lots of options if I can get hold of each number...
Regards
boggy |
|
Back to top |
|
|
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Thu Oct 14, 2010 2:44 pm Post subject: |
|
|
Yes, the python library provides functions for reading timestamps from files which could then be converted to a string and combined in any way to create sub-foldernames which can then be used to create subfolders.
Peter. |
|
Back to top |
|
|
|