ietoolkit
ietoolkit copied to clipboard
[iefolder]: modify subfolder or round names
Hi guys,
I recently had to change the name of data collection round folders: I guess the quickest way is just creating a new round with iefolder
, move all the files and the delete the original round folder.
Would it make sense to have this option in the command, though? The main rationale being that it would update the master dofiles automatically, without the need of manual changes by the user, save some time and, most importantly, the risk of deleting any file :grin:
Ciao @MRuzzante !
Happy you still remember us! 😄
I spent a lot of time thinking on how to solve this. Renaming the folders is the easier part, but updating something that is already in the master do-file was something that I did not have a good way to solve.
Currently when iefolder
updates the master do-file, all it does is that it adds new lines before the divisors that says *iefolder will not work properly if the line above is edited
. It doesn't edits any existing lines.
While it would maybe be possible to update a round section if no-one made no edits to it, I know that people do made additions in the section. For example adding a file path to encrypted etc. And then handling that gets really difficult and that is were I did not see any practical solutions.
But lets think if there is something else we can do. How long time did it take you? And what took time? I do not think editing the master do-file after adding a new round took to long time. Maybe moving the files took time? I think it is easier to write some code that helps you to correctly copy the files quickly than solving you original request in this issue.
Haha I won't leave you alone :laughing:
In my case, it was a very quick task as the round folder still contained few files at this project stage, but I flagged this case to you as I imagined this would become longer (and riskier) at a later stage.
Changing the master do-file was quick too. The only point I was concerned about was to not mess up the *iefolder*
divisors structure. So, my idea/question was if those could be used by the command to update folders and paths. That seems to rely on the fact that no edits were done, but perhaps you could add an error message in such case, saying something like "We are not able to change the name of the folders as you did some changes to the master do-file. We suggest you to do move the files manually by [...]" including some guideline to do.