Repository navigation
Release 0.1.36: %dds list and get (ref #309773) - #106
Merged
Merged
Conversation
…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)
%dds list and get, and valid folders in every folder error (ref #309773)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Releases staging (0.1.36) to main. Ref #309773.
%dds list(folder, pattern=None, path=None). Shows the file names in a DDS document folder (by default the%catalog usecontext), sorted.patternis 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.DdsFoldervalues inpush,list,getandtarget.exists()usesHEADinstead of downloading the file.Merged into staging through #104 and #105.