Skip to content

Instantly share code, notes, and snippets.

@fretn
fretn / cloudsend.sh
Last active February 2, 2019 21:35 — forked from tavinus/cloudsend.sh
Send files to Nextcloud/Owncloud shared folder using curl
#!/usr/bin/env bash
############################################################
#
# cloudsend.sh
#
# Uses curl to send files to a shared
# Nextcloud/Owncloud folder
#
# Usage: ./cloudsend.sh <file> <folderLink>
<?php
// written by frlae - 2015 01 27
// replacement class for the buggy zipstreamer class (on osx you cannot unzip the zip files)
class ZipStreamer {
private $archivename = "";
private $isFinalized = false;
private $filelist = array();
private $dirlist = array();
private $cwd = "";