Skip to content

%dds list and get, and valid folders in every folder error (ref #309773) - #105

Merged
oskaresparza merged 8 commits into
stagingfrom
development
Oct 21, 2026
Merged

oskaresparza merged 8 commits into
stagingfrom
development

Conversation

@oskaresparza

Copy link
Copy Markdown
Collaborator

Brings #104 from development into staging. Ref #309773.

  • %dds list(folder, pattern=None, path=None). Shows the file names in a DDS document folder (by default the %catalog use context), sorted. pattern is an optional filter: a wildcard, an extension, text in the name, or a list of these. It uses DDS's listing route, GET /api/v1/files/{folder}/, page by page.
  • %dds get(folder, filename, path=None, output_dir=None, overwrite=True). Downloads one file into the notebook's folder and returns the local file. A missing file is a short error.
  • Folder errors. A wrong, quoted or missing folder lists the valid DdsFolder values in push, list, get and target.
  • exists() uses HEAD instead of downloading the file.

The other commits are main's README install-line updates that dds_list_get carried into development. They leave staging's version unchanged.

oskaresparza and others added 8 commits October 19, 2026 14:54
staging → main: %dds push, ingest PY-1–PY-13 and the main ingest fix
Release 0.1.34: %gpkg GeoPackage export, pushable with %dds (ref #309764)
…or, ref #309773

- list(folder, pattern=None, path=None): the file names in a DDS folder,
  sorted; pattern filters by wildcard, extension or text, or a list of them.
  Uses DDS's real listing route, GET /api/v1/files/{folder}/, page by page.
- get(folder, filename, path=None, output_dir=None, overwrite=True): download
  one file into the notebook's folder and return the local file; a missing
  file is a short error.
- A wrong, quoted or missing folder names the valid DdsFolder values in push,
  list, get and target, including a misspelt bare name in %dds.
- exists() uses HEAD instead of downloading the file.

Redmine-Hook: v1
%dds list and get, and valid folders in every folder error (ref #309773)
@oskaresparza
oskaresparza merged commit 108217b into staging Oct 21, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant