I want to make a script that can extract rar files recursively and append an extension to the extracting files.
The extension should be added during the process (so that other software doesn't see a recognised file extension and start its process until all files are extracted). Once all files are completed the extension should be removed.
Here is an example file structure...
/some/path/
folder1/
folder2/
file1.rar
folder3/
file2.rar
file3.rar
folder4/
file4.rar
I want this to turn to this...
/some/path/
folder1/
folder2/
file1.rar
file1.txt.extracting
folder3/
file2.rar
file2.txt.extracting
file3.rar
file3.txt.extracting
folder4/
file4.rar
file4.txt.extracting
Then once all are complete, to this...
/some/path/
folder1/
folder2/
file1.rar
file1.txt
folder3/
file2.rar
file2.txt
file3.rar
file3.txt
folder4/
file4.rar
file4.txt
I hope that makes sense. Is this possible?