OATS Improvement Help

I’m over my head here, but I’m trying to see how OATS could be modified to accept dataset links that point to a subfolder of a GitHub repository, instead of needing the “root” zip link. Something more along the lines of how, with the Cloud Import Plugin, we can do the same thing via WebODM GUI.

I believe functions.bash needs to be modified, likely starting from Line 74:

check_download_dataset(){

    dataset="$1"

    if [ ! -e ./datasets/$dataset/images ] && [ ! -z $DATASET_URL ]; then

        if [ ! -e ./datasets/$dataset ]; then

            mkdir ./datasets/$dataset

        fi 

        wget $DATASET_URL -q -O ./datasets/$dataset/download.zip

        cd ./datasets/$dataset/

        unzip ./download.zip 2>/dev/null

        rm ./download.zip

        

        # Remove top level directory if needed

        for dir in $(ls -d */); do 

            if [ "$dir" != "images/" ]; then

                mv "$dir"/* .

                rm -fr "$dir"

            fi

        done

        # Check images path

        if [ ! -e ./images ]; then

            mkdir images

            mv *.* images

        fi

        cd ../../

    fi

}

This link posits this solution:

curl -L https://github.com/janosgyerik/jquery-upvote/tarball/master > project.tar.gz

(I’m trying to get OATS files working for the mf_obriens and mf_old_orchard datasets)