From 8ff95a53f2745c609d2ff562d8f9a6915a9cd372 Mon Sep 17 00:00:00 2001 From: mbe Date: Sat, 19 Jul 2014 09:07:59 +0200 Subject: [PATCH] Fixed markup. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index fe9b0cf..fc1be05 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,14 @@ Subdirectories will always be processed. ## Good to know Given a file and folder structure like below: +``` c:\photos\001.jpg c:\photos\dir1\002.jpg +``` ...the utility will create the following: +``` c:\photos\eaDir_tmp\001.jpg\SYNOPHOTO_THUMB_XL.jpg c:\photos\eaDir_tmp\001.jpg\SYNOPHOTO_THUMB_B.jpg c:\photos\eaDir_tmp\001.jpg\SYNOPHOTO_THUMB_M.jpg @@ -26,9 +29,11 @@ c:\photos\dir1\eaDir_tmp\002.jpg\SYNOPHOTO_THUMB_B.jpg c:\photos\dir1\eaDir_tmp\002.jpg\SYNOPHOTO_THUMB_M.jpg c:\photos\dir1\eaDir_tmp\002.jpg\SYNOPHOTO_THUMB_PREVIEW.jpg c:\photos\dir1\eaDir_tmp\002.jpg\SYNOPHOTO_THUMB_S.jpg +``` `eaDir_tmp` is used as a temporary directory name as @ characters are not valid in file names on Windows. Therefore these folders must be renamed to `@eaDir` for PhotoStation to recognize them. This renaming process must be done via SSH to the DiskStation unless the volume is mounted by NFS. Useful commands: +``` # remove any existing thumbnail directories, dry-run check print out before running next command! find /volume1/photos -type d -name '@eaDir' -exec echo '{}' \; @@ -37,3 +42,4 @@ find /volume1/photos -type d -name '@eaDir' -exec rm -rf '{}' \; # rename directories find /volume1/photos -type d -name 'eaDir_tmp' -exec mv '{}' @eaDir \; +```