#! /bin/bash 
# Last edited on 2017-07-28 22:00:05 by jstolfi

# Creates the file structure for the test of {move_items_from_backup_dir.sh}.
# Arguments are the files to be created, with the full path relative to ".".

files=( "${@}" )

for file in "${files[@]}" ; do
  xx="./${file}" ;
  pdir="${xx%/*}"; pdir="${pdir#./}";
  entry="${xx##*/}";
  echo "pdir=${pdir} entry=${entry}"
  mkdir -pv "${pdir}"; 
  echo "foobar" > "${file}"
done

