summaryrefslogtreecommitdiff
path: root/spec-qdp/spec/qdp-directory-state-patterns.yml
blob: 4cbcde6d9fe4455f062d946bb49eca0ae944d816 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2020, 2023 embedded brains GmbH & Co. KG
enabled-by: true
links:
- role: spec-member
  uid: root
spec-description: null
spec-example: null
spec-info:
  dict:
    attributes:
      include:
        description: |
          It shall be a Python ``fnmatch`` pattern.  If a file path relative to
          the base directory of the directory state matches with the pattern,
          then the file is added to the directory state if it is not rejected
          by an exclude pattern.
        spec-type: str
      exclude:
        description: |
          It shall be a list of Python ``fnmatch`` patterns.  If a file path
          matches with the pattern, then the file is not added to the directory
          state.  The file paths are absolute paths relative to the base
          directory of the directory state.  For example, if the directory
          state has a base of ``/base`` and a file to include has the path
          ``/base/abc``, then the file path ``/abc`` is used to match with the
          exclude patterns.
        spec-type: list-str
    description: |
      This set of attributes specifies a set of patterns used to load the file
      list of the directory state.
    mandatory-attributes: all
  none: null
spec-name: Directory State Patterns
spec-type: qdp-directory-state-patterns
type: spec