harn-stdlib 0.8.26

Embedded Harn standard library source catalog
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// std/files — provider file upload helpers.
//
// Import with: import "std/files"
/**
 * Upload a local file to a provider Files API and return its reusable file_id.
 *
 * @effects: []
 * @allocation: heap
 * @errors: []
 * @api_stability: stable
 * @example: upload(path, provider)
 */
pub fn upload(path: string, provider: string) -> string {
  return __files_upload(path, provider)
}