Crate lfspull

source ·
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§

Modules§

  • The prelude to set everything up for calling any crate functions

Functions§

  • Pulls a glob recurse expression In addition to the same errors as in pull_file, more LFSError::DirectoryTraversalError can occur if something is wrong with the pattern
  • 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