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 or Info.
  • Response is not InfoWithNumber.