save point

This commit is contained in:
kake26 2025-05-12 14:35:28 -05:00
parent 4c8b2b9c3b
commit 5b83c89d4a
Signed by: kake26
GPG key ID: E0A989B571D1F99F
9 changed files with 128 additions and 41 deletions

33
modules/filen.bash Normal file
View file

@ -0,0 +1,33 @@
#!/usr/bin/env bash
# Filen module for lactozora framework
# Requires filen-cli to be installed and authenticated
filen_upload() {
local file_path="$1"
local remote_path="$2"
if [[ ! -f "$file_path" ]]; then
echo "Error: File $file_path does not exist" >&2
return 1
fi
if ! command -v filen &> /dev/null; then
echo "Error: filen-cli is not installed" >&2
return 1
fi
filen upload "$file_path" "$remote_path"
}
filen_download() {
local remote_path="$1"
local local_path="$2"
if ! command -v filen &> /dev/null; then
echo "Error: filen-cli is not installed" >&2
return 1
fi
filen download "$remote_path" "$local_path"
}