Add a folder replicator
Reported by Christopher Stawarz | September 16th, 2010 @ 12:19 PM | in 0.4.5 (closed)
You give it a directory path, and it iterates over the (non-hidden, regular) files in the directory, assigning the name of each to a local variable in turn. It could be used in an experiment like so:
<folder_replicator tag="New Folder Replicator" path="/folder/with/images" variable="filename">
<stimulus type="image_file" tag="${filename}" path="/folder/with/images/${filename}" ...></stimulus>
</folder_replicator>
Probably, this should only be allowed in the "Stimuli" section of the experiment.
Comments and changes to this ticket
-
Christopher Stawarz October 20th, 2010 @ 04:54 PM
- State changed from new to resolved
- Milestone set to 0.4.5
- Assigned user set to Christopher Stawarz
- Milestone order changed from 168154 to 0
Completed in mw_core commit f120cc90ed0944e1e0b55edd34e19ebf1239be44
As discussed on Tender, rather than creating a new folder_replicator element, I added equivalent functionality to list_replicator via the
filenames(...)
directive.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
The core framework and supporting libraries for the MWorks Suite