Skip to content

Commit

Permalink
update descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
SageGJ committed Nov 19, 2024
1 parent bc9f479 commit 79f5bda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions schematic/store/synapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ def getStorageDatasetsInProject(self, projectId: str) -> list[tuple[str, str]]:
def getFilesInStorageDataset(
self, datasetId: str, fileNames: List = None, fullpath: bool = True
) -> List[Tuple[str, str]]:
"""Gets all files in a given dataset folder.
"""Gets all files (excluding manifest files) in a given dataset folder.
Args:
datasetId: synapse ID of a storage dataset.
Expand All @@ -707,6 +707,10 @@ def getFilesInStorageDataset(
file_list = []
folder_list = []
# Identify all folders nested under the dataset folder
with DatasetFileView(
datasetId=datasetId, synapse=self.syn, temporary=True
) as temp_view:
temp_view.query()
folders = synapseutils.walk(self.syn, datasetId, includeTypes=["folder"])
for subfolder, _, _ in folders:
folder_list.append(subfolder[1])
Expand Down Expand Up @@ -3414,7 +3418,7 @@ def __init__(
parent=self.parentId,
scopes=self.datasetId,
includeEntityTypes=[EntityViewType.FILE, EntityViewType.FOLDER],
addDefaultViewColumns=False,
addDefaultViewColumns=True,
addAnnotationColumns=True,
)

Expand Down
4 changes: 2 additions & 2 deletions schematic_api/api/openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,8 @@ paths:
- Synapse Storage
/storage/dataset/files:
get:
summary: Get all files in a given dataset folder
description: Get all files in a given dataset folder
summary: Get all files (excluding manifest files) in a given dataset folder
description: Get all files (excluding manifest files) in a given dataset folder
operationId: schematic_api.api.routes.get_files_storage_dataset
security:
- access_token: []
Expand Down

0 comments on commit 79f5bda

Please sign in to comment.