Tool: DB: Update File State #9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
.. missing infos into DB
-> #7 DB Tool AutoImport FileType -> F_Type
Tool: Search & Insertto Tool: DB: Update File Stateadded 'tool_db-update-file-state branch'
db_query "SELECT CONCAT(ID,'|$moviedir/', Folder, '/', Name) FROM File WHERE TTSync=$TTSYNC_EXIST;" | while read line; do ID=$(echo $line | cut -d '|' -f 1); FILE="$(echo $line | cut -d '|' -f 2)"; Size=0; [ -f "$FILE" ] && Size=$(($(du -b "$FILE" | cut -f 1)/1024)); echo "UPDATE File SET Size=$Size WHERE ID=$ID;"; db_query "UPDATE File SET Size=$Size WHERE ID=$ID;"; done
move case of Existing file & db entry but empty Size to import-md5
mit #10d8bb1a395265791a745f108d3feb6446546921 erste version vertig