Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for File objects to describe directories #618

Merged
merged 3 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion model/Software/Classes/File.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ 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 isDirectory property is specified and set to true, then the file represents a directory and all content stored in that directory.

## Metadata

- name: File
Expand All @@ -22,9 +24,12 @@ The type of content can optionally be provided in the contentType property.
- 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
goneall marked this conversation as resolved.
Show resolved Hide resolved