SenseNet / sn-io

Import and export features and tools for the sensenet repository.
GNU General Public License v2.0
0 stars 0 forks source link

Skip importing folders without content files #28

Closed tusmester closed 1 year ago

tusmester commented 1 year ago

I want to import content items into multiple folders in the whole repository (e.g. /Root/Content, /Root/System, templates, string resources) at the same time. But if I do not have Save permission on the Root (or one of the subtree roots) I get an access denied error.

Solution: skip updating simple folders

If an import folder does not have a corresponding .Content file, simply check its existence in the repo. If it exists, skip it, do not try to update it. If it does not exist, import it in the usual way, as a folder.