digiKam
Loading...
Searching...
No Matches
getAvialableJsonFilePathInTrash

Checks for duplicates of files names inside the trash and if there is a duplication it does a simple versioning recursively.

Checks for duplicates of files names inside the trash and if there is a duplication it does a simple versioning recursively

Parameters
collectionPathpath of collection that the image belongs to
baseNamethe baseName of the image
versiona digit to append to the image baseName

("home/user/Pics", "katy", 0) return => "home/user/Pics/.trash/info/katy.dtrashInfo" if this name was available, if not returns => "home/user/Pics/.trash/info/katy{version}.dtrashInfo" where {version} is a integer number that is available in trash