Created
August 2, 2017 01:45
-
-
Save martianyi/69ad06f61a7916e010b88a5541e1fd38 to your computer and use it in GitHub Desktop.
update folder to qiniu using qshell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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