File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 echo $( date ' +%F %H:%M:%S' ) ,START,1,${BYTES} " # ${FILE} " >> ${APILOG}
4343 echo Queuing ${FILE} of size ${BYTESH}
4444 # # Fix for Rclone RC creating multiple directories
45- # if [[ ! -d "${RCLONEMOUNT}${RCLONEFOLDER}$(dirname ${FILE})" ]]; then
46- # mkdir -p "${RCLONEMOUNT}${RCLONEFOLDER}$(dirname ${FILE})"
47- # fi
45+ TESTDIR=" ${RCLONEMOUNT} $( dirname " ${FILE} " ) "
46+ if [[ ! -d " ${TESTDIR} " ]]; then
47+ mkdir -p " ${TESTDIR} "
48+ fi
4849 rclone rc operations/movefile _async=true srcFs=Local: srcRemote=" ${UPLOADS}${FILE} " dstFs=${RCLONESERVICE} :${RCLONEFOLDER} dstRemote=" ${FILE} " --user $RCLONEUSERNAME --pass $RCLONEPASSWORD > /dev/null
49- echo " Sleeping 1 second - temp fix for duplicate folders" ; sleep 1
50+ # echo "Sleeping 1 second - temp fix for duplicate folders" ; sleep 1
5051 else
5152 echo Skipping ${FILE} : Already in queue
5253 fi
You can’t perform that action at this time.
0 commit comments