Function fossology_rs::upload::new_upload_from_file
source · [−]pub fn new_upload_from_file<P: AsRef<Path>>(
fossology: &Fossology,
folder_id: i32,
path_to_file: P
) -> Result<NewUpload, FossologyError>
Expand description
Errors
- File can’t be opened.
- Error while sending request, redirect loop was detected or redirect limit was exhausted.
- Response can’t be serialized to
InfoWithNumber
orInfo
. - Response is not
InfoWithNumber
.