#!/bin/sh
set -e
if [ $# -ne 1 ]; then
    echo "Usage: $0 <newdir>"
    exit 1
fi

sudo -u ipfs -H ipfs add --cid-version=1 -r $1 > videolist.txt

# need to announce the directory CID
# sudo -u ipfs -H ipfs routing provide bafybeibhg2tcient75cxcp66znf4k5bo26xct7nmv7k6nfxllzzllretuy
