Doesn't this overwrite the file for each mlv? In the end only the last path is in the file, or am I wrong? Or is every folder in a new line in this file?
Yes, we can do this - would be cleaner. But an autodelete from time to time would also be nice - what do you think?
Appending will collect all paths neatly placed in a list. When list is opened we will find:
path1
path2
path3
And so on. Now the script can safely check for existence and check mlv and so on.
Auto delete, that's right, could be an issue here if the lists stays in there. Hm, maybe collect separate files as you say. As long as the files exists in the session it should stay in the folder.
Hopefully this isn't too complicated. If so I will have to rearrange some deletion routines in the script.
edit: the more I think of the harder it seems. Even if deleting mlv files there can be mutiple files here that comes from different folders.
Main reason I want the source folders is to know if I can safely delete the mov or tif folders once they are created by matching mlv to the file/folder that will be deleted. Then again it would be sufficient to send onle the MLV filenames to a dedicated mlv list and then I can just grep for the file name instead.
So how can we send a MLV list to /tmp?