#!/bin/bash
read_dir(){
    for file in `ls -a $1`
    do
        if [ -d $1"/"$file ]
        then
            if [[ $file != '.' && $file != '..' ]]
            then
                read_dir $1"/"$file
            fi
        else
            echo $1"/"$file
			str=$1"/"$file
			substr=${str:37}
			echo $substr
			./ossutil64 appendfromfile $1"/"$file oss://huizhong92/$substr
        fi
    done
}
#测试目录 test
read_dir /www/wwwroot/bbhskm.cn/hzshop/public/uploads

点赞(1) 打赏

评论列表 共有 0 条评论

暂无评论

微信小程序

微信扫一扫体验

立即
投稿
立即
联系

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部