In addition to the existing -match option, this PR allows the matching of names by regex during the listing operation. There are new options:
-matchRegex - checks if name matches a regex - this could be useful for exporting notebooks for only specific users, or something like that.
-excludeRegex - checks if name matches a regex, and skips processing of that object. For example, it could be used to exclude databricks_automl directories. This parameter has higher priority than the -match and -matchRegex.
filterDirectoriesDuringWorkspaceWalking - if we should apply match logic to directory names when we're performing workspace tree walking. Note: be careful with it as it will be applied to all entries, so if you want to filter only specific users, then you will need to specify the condition for /Users as well, so regex will be `^(/Users|/Users/[a-c].)$`*
Tests
[x] make test run locally
[x] relevant change in docs/ folder
[ ] covered with integration tests in internal/acceptance
Changes
In addition to the existing
-match
option, this PR allows the matching of names by regex during the listing operation. There are new options:-matchRegex
- checks if name matches a regex - this could be useful for exporting notebooks for only specific users, or something like that.-excludeRegex
- checks if name matches a regex, and skips processing of that object. For example, it could be used to excludedatabricks_automl
directories. This parameter has higher priority than the-match
and-matchRegex
.filterDirectoriesDuringWorkspaceWalking
- if we should apply match logic to directory names when we're performing workspace tree walking. Note: be careful with it as it will be applied to all entries, so if you want to filter only specific users, then you will need to specify the condition for/Users
as well, so regex will be `^(/Users|/Users/[a-c].)$`*Tests
make test
run locallydocs/
folderinternal/acceptance