+ done < "$CACHE_FILE";
+};
+# Function to get byte count of file name
+prepend_path_bc() {
+ # Desc: Prepends a file path with %[path bytecount]%
+ # Usage: prepend_filename_bc [FILE]
+ # Input: arg1 str file path
+ # Output: stdout str %[int path length]%path
+ # Example: 'foo.txt' yields '%7%foo.txt'
+ # Depends: GNU Coreutils 8.32 (for 'wc')
+ # BK-2020-03: yell(), die(), must()
+ # Ref/Attrib: See “Syntax of mpv EDL files” https://github.com/mpv-player/mpv/blob/master/DOCS/edl-mpv.rst#syntax-of-mpv-edl-files
+ fin="$1";
+
+ if [[ ! -f "$fin" ]]; then
+ yell "WARNING:File does not exist:${fin}";
+ fi;
+
+ bytecount="$(printf "%s" "$fin" | wc -c; )";
+ re='[0-9]';
+ if [[ ! "$bytecount" =~ $re ]]; then
+ die "FATAL:Not an int:${bytecount}; $(declare -p fin bytecount)";
+ fi;
+ printf "%%%s%%%s" "$bytecount" "$fin";
+};