Improve renaming of hidden folder
The code to rename the hidden folder (see here ) has several weaknesses:
- If there is another . in the path it will be removed as well, either causing an error or creating a full parallel folder structure. This can be changed by either splitting the path and only working on the last part, or by using regex to only remove dots that follow the last filesep sign.
- A dot in the ID, which would mean we only need to work on he first character of the last part of the path / section after last filesep
- If there are multiple . at the beginning. Since the foldername is generated from the ID, this should not be a real problem. We should enforce a numerical or letter as first sign though.
Edited by Hock, Martin