Rename action creates incorrect directory structure

Bug #566035 reported by Piotr Krukowiecki on 2010-04-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Phatch
Undecided
Stani

Bug Description

I wanted to put each image into a folder with image creation date from exif. It sort of worked, but created additional folder with the name of image file.

Rename action parameters:
File Name: <filename>
In: /media/2ee9fa70-9c2e-40a5-a350-6c17f163f563/ZdjeciaPodzielone/<Exif_Image_DateTime.year>_<Exif_Image_DateTime.month>_<Exif_Image_DateTime.day>/<filename>.<type>

The source folder for this action was /media/2ee9fa70-9c2e-40a5-a350-6c17f163f563/Nagraj/2005.07.26-blah.

I expected that the result will be something like this:
/media/2ee9fa70-9c2e-40a5-a350-6c17f163f563/ZdjeciaPodzielone/2005_7_22/IMG_0952.JPG
/media/2ee9fa70-9c2e-40a5-a350-6c17f163f563/ZdjeciaPodzielone/2005_7_22/IMG_0953.JPG
[...]

But the result was like this:
/media/2ee9fa70-9c2e-40a5-a350-6c17f163f563/ZdjeciaPodzielone/2005_7_22/IMG_0952.JPG/IMG_0952.JPG
/media/2ee9fa70-9c2e-40a5-a350-6c17f163f563/ZdjeciaPodzielone/2005_7_22/IMG_0952.JPG/IMG_0953.JPG

As you can see each image file was put into a separate folder with the same name as the image file.
I do not understand why. In my opinion this is a bug.

I was using phatch from your ppa for karmic.

> But the result was like this:
> /media/2ee9fa70-9c2e-40a5-a350-6c17f163f563/ZdjeciaPodzielone/2005_7_22/IMG_0952.JPG/IMG_0952.JPG
> /media/2ee9fa70-9c2e-40a5-a350-6c17f163f563/ZdjeciaPodzielone/2005_7_22/IMG_0952.JPG/IMG_0953.JPG

Made a typo when copy&paste. The second file should be in the same folder name as it's name, that is
   IMG_0953.JPG/IMG_0953.JPG
instead of
   IMG_0952.JPG/IMG_0953.JPG

Stani (stani) wrote :

Thanks for reporting this bug. Please attach a zip file which contains your phatch action list and image(s) to reproduce the issue.

Changed in phatch:
assignee: nobody → Stani (stani)
status: New → Incomplete
Stani (stani) on 2010-04-19
Changed in phatch:
milestone: none → 0.2.8

I think it happens with all images. I'm attaching one. My action:

{'actions': [{'fields': {'File Name': u'<filename>',
                         'In': u'/tmp/Target/<####Exif_Image_DateTime.year>_<##Exif_Image_DateTime.month>_<##Exif_Image_DateTime.day>/<filename>.<type>',
                         '__enabled__': 'yes'},
              'label': 'Rename'}],
 'description': '',
 'version': '0.2.7'}

Stani (stani) wrote :

Thanks for the picture! Please also attach your actionlist (*.phatch).

The content of the actionlist is in my previous comment. Is that not enough?

Stani (stani) wrote :

No, sorry. When we reproduce bugs we need to be able to reproduce them with one click. This avoids any potential difference and we are doing this in our free time, so we are very picky to save time.
Thanks for your understanding!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments