Expand description
§Pulling lfs files from git
This crate allows to download lfs files.
Please check repo_tools::glob_recurse_pull_directory
for complete directories and repo_tools::pull_file
for single files.
It really is the minimal viable example featuring only our own simple use-case: token / bearer auth and pulling a single file per request.
Re-exports§
pub use prelude::FilePullMode;
pub use prelude::LFSError;
Modules§
- prelude
- The prelude to set everything up for calling any crate functions
Functions§
- glob_
recurse_ pull_ directory - Pulls a glob recurse expression
In addition to the same errors as in
pull_file
, moreLFSError::DirectoryTraversalError
can occur if something is wrong with the pattern - pull_
file - Ensures a single file is pulled from the lfs
Currently only token/https auth is supported.
Various errors can occur which are covered by the
LFSError
struct The return value specifies the origin of the file