1.1 --- a/e2archive Mon Mar 25 21:25:18 2019 +0100
1.2 +++ b/e2archive Mon Mar 25 22:07:15 2019 +0100
1.3 @@ -122,21 +122,9 @@
1.4
1.5 for SOURCE in $* ; do
1.6
1.7 - # First, create all directories so that files can be written somewhere
1.8 - # later.
1.9 + # Write directories and files to their respective locations.
1.10
1.11 - find "$SOURCE" -type d -print | while read -r FN ; do
1.12 - if [ "$FN" ] ; then
1.13 - if [ "$VERBOSE" ] ; then
1.14 - echo "$FN"
1.15 - fi
1.16 - "$ACCESS" "$TARGET" --make-dirs "$FN"
1.17 - fi
1.18 - done
1.19 -
1.20 - # Then, write files to their respective locations.
1.21 -
1.22 - find "$SOURCE" -type f -print | while read -r FN ; do
1.23 + find "$SOURCE" -type d -print -o -type f -print | while read -r FN ; do
1.24 if [ "$FN" ] ; then
1.25 if [ "$VERBOSE" ] ; then
1.26 echo "$FN"