Summary: | Remaining space incorrectly calculated when using symlinks (import from camera) | ||
---|---|---|---|
Product: | [Unmaintained] kio | Reporter: | Michal Kolodziejczyk <miko> |
Component: | kfile | Assignee: | Carsten Pfeiffer <pfeiffer> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles |
Priority: | NOR | ||
Version: | SVN | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 1.0.0 | |
Sentry Crash Report: |
Description
Michal Kolodziejczyk
2007-10-25 11:08:10 UTC
Would it be possible to check the remaining space on the drive onto which new images will be downloaded? (This would mean to resolve the physical drive from any possible symlink, right?) There is another problem: many of the images on the camera card are also on the disk. Let suppose that I have 990 MB of images on my camera card also on my disk, and there is one 1MB new photo on the camera, and I have 2 MB of free space on my partition. And now I want co import all images from the camera (overwriting my 990MB images on disk with the same images from the camera). Digikam would think I need 991 MB of free space, while in fact I need only 1 MB. So to calculate the remaining space properly, the size of images "to be overwritten" should be substracted from the total required space. This problem depand of KDE API which is used to compute free space : they do not include symlinks support, or do not have option relevant. The KDELibs objects used for that are : - KDiskFreeSp (KDE3) : http://api.kde.org/3.5-api/kdelibs-apidocs/kio/kfile/html/classKDiskFreeSp.html - KDiskFreeSpace (KDE4.1) : http://api.kde.org/4.x-api/kdelibs-apidocs/kio/html/classKDiskFreeSpace.html - KDiskFreeSpaceInfo (KDE 4.2) : http://websvn.kde.org/trunk/KDE/kdelibs/kio/kfile/kdiskfreespace.h?view=markup Note : with digiKam for KDE4, you don 't need to use symlink with your album root path. We support multiple root albums... I will re-assign this file to KDELibs/kio Gilles Gilles Caulier Works OK with recent versions. Thanks! |