Bug 145640 - adding multiple folder paths for single image database
Summary: adding multiple folder paths for single image database
Status: RESOLVED WORKSFORME
Alias: None
Product: kphotoalbum
Classification: Applications
Component: general (show other bugs)
Version: 3.0.2
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: KPhotoAlbum Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-18 17:25 UTC by Ritesh Raj Sarraf
Modified: 2016-11-25 16:28 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ritesh Raj Sarraf 2007-05-18 17:25:28 UTC
Version:           3.0.2 (using KDE KDE 3.5.6)
Installed from:    Debian testing/unstable Packages
OS:                Linux

I have images/videos in "Folder A" and images/videos in "Folder B" and the database backend was created with the path "Folder A". I don't see a clean and simple way of telling KPA to keep an eye on "Folder B".

I want KPA to have a single image database which keeps track of multiple folders at different paths
 
Something like Amarok's library management.
In Amarok, I can specify multiple folders at different locations telling amarok that all of them contain music and that it should monitor all those folders for activity. 
 
Can we have this feature ? It'd be great.

Thanks,
Ritesh
Comment 1 Jan Kundrát 2007-08-09 21:15:12 UTC
`cd "folder A"; ln -s "path/to/Folder B" videos` should do the trick for you.
Comment 2 rlk 2007-08-10 00:54:29 UTC
This won't work so well if folder A is read-only, or the filesystem you're running on doesn't support symlinks.  Also, how well does kpa handle an accidental symlink loop?
Comment 3 Jan Kundrát 2007-08-10 10:50:40 UTC
> This won't work so well if folder A is read-only, or the filesystem you're
> running on doesn't support symlinks.

In such case, you'll have to either abuse bind mounting (if your OS supports that) or create new root directory on a normal filesystem containing links to directories A and B. KPA should handle that in an intelligent way, ie it will find out that files have same checksum and reuse all tags.

Anyway, if there's a patch for adding such functionality, I'll check it and commit it.

>  Also, how well does kpa handle an accidental symlink loop? 

Not very well, I guess.
Comment 4 Ritesh Raj Sarraf 2008-12-16 11:44:24 UTC
I think we should re-think the solution. KPA is now supposed to run on Windows/Mac also.
Comment 5 Jan Kundrát 2008-12-19 00:30:11 UTC
Ritesh, if you have a patch, I'd love to review and integrate it. Right now, we unfortunately have other issues to deal with than this.