6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/4/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#8760] Process subdirectories correctly and handle .files appropriately
*
Your Email Address
*
Spam protection
Enter the letters below:
.___.__ .___. __ .__ [__ | \ | / `[__) [___|__/ | \__.|
Comment
> The attached diff patches a failing in the current > /ansel/scripts/recursive_import.php where if you specify a > subdirectory, it won't process the directory correctly. This is due > to slightly faulty logic in the code where it manually traverses the > tree, rather than searching the tree relatively. Without > re-engineering the import process, I have created this slightly > cludgy patch which will only work on *nix based systems. > > This looks for a / at the start of the path, and if that doesn't > exist, do a `pwd` and add that to the beginning of the path. There's > probably a much more efficient way of doing this, but off-hand I > couldn't think of it. > > There's also included in this diff (which again, only works on *nix > file systems) which looks for hidden dotfiles and discards them. > This is particularly useful if you moving your photos from a > Subversion repository into ansel. Sadly, this part will currently > *always* discard dotfiles because I can't work out how to make the > option-matching code accept -s or --secret as options, like -k or > --keep currently does.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers