Skip to content
Snippets Groups Projects
Commit 0b01d3f0 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

DOC: Improve docstrings in loadFiles

parent 6362238e
No related branches found
No related tags found
2 merge requests!128MNT: Added a warning when column metadata is not configured, and a better...,!113F doc loadfiles
...@@ -181,7 +181,12 @@ def create_re_for_file_list(files, localroot, remoteroot): ...@@ -181,7 +181,12 @@ def create_re_for_file_list(files, localroot, remoteroot):
def loadpath(path, include, exclude, prefix, dryrun, forceAllowSymlinks, caosdbignore=None, def loadpath(path, include, exclude, prefix, dryrun, forceAllowSymlinks, caosdbignore=None,
localpath=None): localpath=None):
"""Make all files in `path` available to the LinkAhead server as FILE entities. """Make all files in `path` available to the LinkAhead server as
FILE entities.
Notes
-----
Run ``linkahead-loadfiles --help`` for more information and examples.
Parameters Parameters
---------- ----------
...@@ -190,9 +195,31 @@ def loadpath(path, include, exclude, prefix, dryrun, forceAllowSymlinks, caosdbi ...@@ -190,9 +195,31 @@ def loadpath(path, include, exclude, prefix, dryrun, forceAllowSymlinks, caosdbi
available as seen by the linkahead server (i.e., the path from available as seen by the linkahead server (i.e., the path from
within the Docker container in a typical LinkAhead Control within the Docker container in a typical LinkAhead Control
setup.) setup.)
include : str include : str or None
Regular expression matching the files that will be
included. If None, all files are matched. This is ignored if a
`caosdbignore` is provided.
exclude : str or None
Regular expression matching files that are to be included.
prefix : str
The prefix under which the files are to be inserted into
LinkAhead's file system.
dryrun : bool
Whether a dryrun should be performed.
forceAllowSymlinks : bool
Whether symlinks in the `path` to be inserted should be
processed.
caosdbignore : str, optional
Path to a caosdbignore file that defines which files shall be
included and which do not. The syntax is the same as in a
gitignore file. You must also provide the `localpath` option
since the check is done locally. If this is given, any
`include` is ignored.
localpath : str, optional
Path of `path` on the local machine. Only needed in the
combination with a `caosdbignore` file since it is processed
locally.
""" """
if caosdbignore: if caosdbignore:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment