Skip to content

Commit

Permalink
Add isDirectory optional property to file
Browse files Browse the repository at this point in the history
Signed-off-by: Gary O'Neall <[email protected]>
  • Loading branch information
goneall committed Jan 31, 2024
1 parent 445ddd3 commit d20e3ef
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
7 changes: 5 additions & 2 deletions model/Software/Classes/File.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Refers to any object that stores content on a computer.
Refers to any object that stores content on a computer.
The type of content can optionally be provided in the contentType property.

If the file reference a directory, then the file represents the directory and all content stored in that directory.
If the isDirectory is specified and set to true, then the file represents the directory and all content stored in that directory.

## Metadata

Expand All @@ -24,9 +24,12 @@ If the file reference a directory, then the file represents the directory and al
- type: /Core/MediaType
- minCount: 0
- maxCount: 1
- isDirectory
- type: xsd:boolean
- minCount: 0
- maxCount: 1

## External properties restrictions

- /Core/Element/name
- minCount: 1

18 changes: 18 additions & 0 deletions model/Software/Properties/isDirectory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
SPDX-License-Identifier: Community-Spec-1.0

# isDirectory

## Summary

If true, denotes the Element is a directory.

## Description

If true, denotes the Element is a directory.

## Metadata

- name: isDirectory
- Nature: DataProperty
- Range: xsd:boolean

0 comments on commit d20e3ef

Please sign in to comment.