← Back to team overview

phatch-dev team mailing list archive

[Bug 418519] Re: <folder>_xxx/<subfolder> fails to replicate structure of input tree

 

No, sorry, this didn't quite work for me yet.

With reference to the same test data and script that I previously
supplied:

The input tree is

demo
|-- CementerioRosario.jpg
`-- lev-1
    |-- belongil_beach_HDR.jpg
    `-- lev-2
        `-- Yellowstone1_20040619_bg.jpg

and the sequence of actions is SCALE + SAVE + RENAME.

So I expect to get back that tree untouched, plus a copy of that tree
(demo_processed) with the same structure and pictures in the same
place, except each picture would be scaled and renamed.

What do I get instead? The source tree is emptied of all pictures and
the destination tree now has both the original and the resized
pictures in it:

demo
`-- lev-1
    `-- lev-2
demo_processed
|-- 2009-8-24-14-7-40.jpg
|-- CementerioRosario.jpg
`-- lev-1
    |-- 2009-8-24-14-15-17.jpg
    |-- belongil_beach_HDR.jpg
    `-- lev-2
        |-- 2009-8-24-13-58-10.jpg
        `-- Yellowstone1_20040619_bg.jpg

I would have much preferred for the originals to stay where they were.

Tested on 0.2.0.bzr1138.

-- 
<folder>_xxx/<subfolder> fails to replicate structure of input tree
https://bugs.launchpad.net/bugs/418519
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.

Status in Phatch = Photo & Batch!: Fix Committed

Bug description:
See this thread
http://photobatch.wikidot.com/forum/t-177883/combining-save-and-rename-and-loss-of-exif-tags-during-save

Still unclear why
<folder>_processed/<subfolder> had to create another empty subtree
though.

Source tree was

demo
|-- CementerioRosario.jpg
`-- lev-1
    |-- belongil_beach_HDR.jpg
    `-- lev-2
        `-- Yellowstone1_20040619_bg.jpg

2 directories, 3 files

I told it to process the folder called demo. Expected output was

demo_processed
|-- 2009-8-24-14-19-48.jpg
`-- lev-1
    |-- 2009-8-24-14-19-48.jpg
    `-- lev-2
        `-- 2009-8-24-14-19-48.jpg

And instead I got

demo_processed
|-- lev-1
|   `-- lev-2
`-- processed
    |-- 2009-8-24-14-19-48.jpg
    `-- lev-1
        |-- 2009-8-24-14-19-48.jpg
        `-- lev-2
            `-- 2009-8-24-14-19-48.jpg

I can't understand why it created those two empty "lev1/lev2"
directories or why id did an extra "processed" dir inside
"demo_processed".



References