[Digikam-devel] [Bug 221457] Digikam camera download - dates are not preserved.

Edward d'Auvergne true.bugman at gmail.com
Thu Jan 21 20:34:33 GMT 2010


https://bugs.kde.org/show_bug.cgi?id=221457





--- Comment #9 from Edward d'Auvergne <true bugman gmail com>  2010-01-21 21:34:32 ---
The date of the file on disk (type 'ls -l') does not match the EXIF date.  The
creation date in the Digikam UI is ok but the modification date is the download
date.  I tried the suggestions of
https://bugs.kde.org/show_bug.cgi?id=188855#c10

$ gphoto2 --debug --debug-logfile=gphoto2_usb.log --port "usb:" --show-info 1
[snip]
Information on file 'IMG_5793.JPG' (folder '/store_00010001/DCIM/257CANON'):
[snip]
  Time:        Sun Jan 17 14:07:22 2010
[snip]
$ gphoto2 --port "ptpip:" --show-info 1
[snip]
  Time:        Sun Jan 17 14:07:22 2010
[snip]

But it is probably not necessary to attach the debug-logfile.  As the
modification date is set to:

-rw-r--r--   1 edward edward 2.0M 2010-01-21 21:20 IMG_5855.JPG

this date is obviously where the problem lies.  The modification date should
not be the date of when I download from the camera, it should be the
modification date of the file on the camera (which will be very close to the
creation date).  This should be seen as a simple file move action - the date
should be preserved.

As for the question of file date - i.e. creation date, access date, and
modification date - I thought creation date and modification date were both
kept on the EXT file systems and the access date was the one not used?

The following demonstrates that this problem is only in Digikam and not in
gphoto2.  First:

$ ls -alh IMG_5855.JPG
-rw-r--r--   1 edward edward 2.0M 2010-01-21 21:20 IMG_5855.JPG
$ gphoto2 --list-files
[snip]
#63    IMG_5855.JPG               rd  1970 KB 2272x1704 image/jpeg
There is no file in folder '/store_00010001/MISC'.
There is no file in folder '/store_80000001'.
$ gphoto2 --get-file 63
libusb couldn't open USB device /dev/bus/usb/005/003: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/005/004: Permission denied.
libusb requires write access to USB device nodes.
Downloading 'IMG_5855.JPG' from folder '/store_00010001/DCIM/258CANON'...
File IMG_5855.JPG exists. Overwrite? [y|n] y
Saving file as IMG_5855.JPG
$ ls -alh IMG_5855.JPG
-rw-r--r-- 1 edward edward 2.0M 2010-01-17 16:24 IMG_5855.JPG
$

Here gphoto2 has downloaded the file and preserved the modification date, the
correct behaviour for camera downloads!

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list