-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change isDirectory to fileKind enumeration (#666)
* Change isDirectory to fileKind enumeration Fixes #630 Note that fileKind was choosen since fileType is already in use Signed-off-by: Gary O'Neall <gary@sourceauditor.com> * Fix type for fileKind Signed-off-by: Gary O'Neall <gary@sourceauditor.com> * Update per comments Signed-off-by: Gary O'Neall <gary@sourceauditor.com> --------- Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
- Loading branch information
Showing
4 changed files
with
41 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
SPDX-License-Identifier: Community-Spec-1.0 | ||
|
||
# fileKind | ||
|
||
## Summary | ||
|
||
Describes if a given file is a directory or non-directory kind of file. | ||
|
||
## Description | ||
|
||
An SPDX file may represent a specific file or a directory of files. In the future, this may be extended to other kinds (e.g. network based files). | ||
|
||
## Metadata | ||
|
||
- name: fileKind | ||
- Nature: ObjectProperty | ||
- Range: FileKindType | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
SPDX-License-Identifier: Community-Spec-1.0 | ||
|
||
# FileKindType | ||
|
||
## Summary | ||
|
||
Enumeration of the different kinds of SPDX file. | ||
|
||
## Description | ||
|
||
An SPDX file may represent a file on disk or a directory of files. In the future, this may be extended to other kinds (e.g. network based files). | ||
|
||
## Metadata | ||
|
||
- name: FileKindType | ||
|
||
## Entries | ||
|
||
- file: The file represents a single file (default). | ||
- directory: The file represents a directory and all content stored in that directory. |