Skip to content

Instantly share code, notes, and snippets.

@martianyi
Created August 2, 2017 01:45
Show Gist options
  • Save martianyi/69ad06f61a7916e010b88a5541e1fd38 to your computer and use it in GitHub Desktop.
Save martianyi/69ad06f61a7916e010b88a5541e1fd38 to your computer and use it in GitHub Desktop.
update folder to qiniu using qshell
#!/usr/bin/env bash
function ergodic(){
for file in `ls $1`
do
if [ -d "$1/$file" ]
then
ergodic "$1/$file"
else
echo "Uploading $1/$file"
qshell rput learning-tech "$1/$file" "$1/$file"
fi
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment