You can also use a database operation, the table you have to edit is oc_share. I tested in my instance and the command update oc_share set file_target= concat("/Shared",file_target) where file_target not like "/Shared/%" and (share_type = 0 or share_type = 1);
worked for me. The command checks if the entry already is a folder named /Shared, only affects shares to users(0) and groups(1) and adds /Shared to the beginning of those entries. Please check if your folder is /Shared or /shared, since it is case sensitive. You can maybe do some tests before running the command, like checking oc_share with select * from oc_share;
and looking at all shares affected with select * from oc_share where file_target not like "/Shared/%" and (share_type = 0 or share_type = 1);
Feel free to ask if you have questions
Best regards,
Valentin
3 Likes