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+ # if [[ ! -d "${RCLONEMOUNT}${RCLONEFOLDER}$(dirname ${FILE})" ]]; then
46+ # mkdir -p "${RCLONEMOUNT}${RCLONEFOLDER}$(dirname ${FILE})"
47+ # fi
4848 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
49+ echo " Sleeping 1 second - temp fix for duplicate folders" ; sleep 1
5050 else
5151 echo Skipping ${FILE} : Already in queue
5252 fi
You can’t perform that action at this time.
0 commit comments