From 8c03102a65c67ba65d267646d5f7eed4eb5c5a05 Mon Sep 17 00:00:00 2001 From: James Dunkerley Date: Wed, 3 Jul 2024 16:49:02 +0100 Subject: [PATCH] Revert internal API change. --- .../lib/Standard/Base/0.0.0-dev/src/Enso_Cloud/Enso_File.enso | 2 +- .../0.0.0-dev/src/Enso_Cloud/Internal/Existing_Enso_Asset.enso | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/lib/Standard/Base/0.0.0-dev/src/Enso_Cloud/Enso_File.enso b/distribution/lib/Standard/Base/0.0.0-dev/src/Enso_Cloud/Enso_File.enso index e07d366c4de7..aef9aeab3e39 100644 --- a/distribution/lib/Standard/Base/0.0.0-dev/src/Enso_Cloud/Enso_File.enso +++ b/distribution/lib/Standard/Base/0.0.0-dev/src/Enso_Cloud/Enso_File.enso @@ -416,7 +416,7 @@ type Enso_File ## PRIVATE list_assets (parent : Enso_File) -> Vector Existing_Enso_Asset = - Existing_Enso_Asset.get_asset_reference_for parent . list + Existing_Enso_Asset.get_asset_reference_for parent . list_directory type Enso_Asset_Type ## Represents an Enso project. diff --git a/distribution/lib/Standard/Base/0.0.0-dev/src/Enso_Cloud/Internal/Existing_Enso_Asset.enso b/distribution/lib/Standard/Base/0.0.0-dev/src/Enso_Cloud/Internal/Existing_Enso_Asset.enso index 7c444a2f77f3..1a5d2a233724 100644 --- a/distribution/lib/Standard/Base/0.0.0-dev/src/Enso_Cloud/Internal/Existing_Enso_Asset.enso +++ b/distribution/lib/Standard/Base/0.0.0-dev/src/Enso_Cloud/Internal/Existing_Enso_Asset.enso @@ -98,7 +98,7 @@ type Existing_Enso_Asset is_regular_file self = self.asset_type == Enso_Asset_Type.File ## PRIVATE - list self = + list_directory self = if self.asset_type != Enso_Asset_Type.Directory then Error.throw (Illegal_Argument.Error "Only directories can be listed.") else response = Utils.http_request_as_json HTTP_Method.Get self.internal_uri assets = get_required_field "assets" response expected_type=Vector