Skip to content

tibequadorian/studipfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

studipfs

About

studipfs is a filesystem client to mount any Stud.IP directory.

It currently provides basic functionality while keeping a very small code base. PRs are very welcome!

Instructions

Prerequisites

The rust toolchain is required for building.

Compilation of fuser crate has additional dependencies.

Build & Install

Install to local environment:

$ cargo install --path .

Usage

CAUTION: Storing login data in enviroment variables is extremely insecure! Use at your own risk.

Set API base URL:

$ export STUDIP_API_URL="https://studip.example.org/api.php"

Set Basic Authorization Token:

$ export STUDIP_TOKEN=$(echo -n "$username:$password" | base64 | sed -e 's/^/Basic /')

At the time of writing, there's no way to directly pass the course id (cid) from a URL like in https://studip.example.org/dispatch.php/course/overview?cid=6675636b206361706974616c69736d21. However the folder id of a course can be obtained with this shell command (using curl and jq):

$ curl -s -u "$username:$password" "$STUDIP_API_URL/course/$cid/top_folder" | jq -r '.id'

Mount and run in background:

$ studipfs <folder id> <mountpoint> &

Unmount:

$ fusermount -u <mountpoint>

About

StudIP filesystem based on FUSE

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages