Skip to content

Commit

Permalink
Revert internal API change.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdunkerley committed Jul 3, 2024
1 parent 5f20d5a commit 8c03102
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c03102

Please sign in to comment.