Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CaosDB Crawler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Crawler
Commits
0a206005
Commit
0a206005
authored
2 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
DOC: enhance docstrings
parent
79e70327
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!105
REL: v0.4.0
,
!93
F subtree
Pipeline
#33259
passed
2 years ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caoscrawler/crawl.py
+12
-6
12 additions, 6 deletions
src/caoscrawler/crawl.py
with
12 additions
and
6 deletions
src/caoscrawler/crawl.py
+
12
−
6
View file @
0a206005
...
...
@@ -427,7 +427,9 @@ class Crawler(object):
Convenience function that starts the crawler (calls start_crawling)
with a single directory as the StructureElement.
restricted_path: see start_crawling
restricted_path: optional, list of string
Traverse the data tree only along the given path. When the end of the given path
is reached, traverse the full tree as normal.
"""
crawler_definition
=
self
.
load_definition
(
crawler_definition_path
)
...
...
@@ -1193,9 +1195,12 @@ ____________________\n""".format(i + 1, len(pending_changes)) + str(el[3]))
generalStore and recordStore: This recursion of the crawl function should only operate on
copies of the global stores of the Crawler object.
restricted_path: optional, list of strings, traverse the data tree only along the given
path. When the end of the given path is reached, traverse the full tree as
normal; The given path contains only the untreated levels, i.e. the first
element is considered at this level.
path. For example, when a directory contains files a, b and c and b is
given in restricted_path, a and c will be ignroed by the crawler.
When the end of the given path is reached, traverse the full tree as
normal. The first element of the list provided by restricted_path should
be the name of the StructureElement at this level, i.e. denoting the
respective element in the items argument.
"""
# This path_found variable stores wether the path given by restricted_path was found in the
# data tree
...
...
@@ -1312,8 +1317,9 @@ def crawler_main(crawled_directory_path: str,
securityMode of Crawler
unique_names : bool
whether or not to update or insert entities inspite of name conflicts
restricted_path : optional, list of str
see start_crawling
restricted_path: optional, list of string
Traverse the data tree only along the given path. When the end of the given path
is reached, traverse the full tree as normal.
Returns
-------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment