Summary | Process subdirectories correctly and handle .files appropriately |
Queue | Ansel |
Queue Version | 1.1 |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | mrubinsk (at) horde (dot) org |
Requester | jon (at) spriggs (dot) org (dot) uk |
Created | 12/08/2009 (5678 days ago) |
Due | |
Updated | 05/18/2010 (5517 days ago) |
Assigned | 12/08/2009 (5678 days ago) |
Resolved | 02/13/2010 (5611 days ago) |
Milestone | |
Patch | No |
State ⇒ Resolved
Horde_Util::realPath (in Git)
Thanks for the report.
MFB - use realPath here.
Bug: 8760http://git.horde.org/diff.php/ansel/scripts/recursive_import.php?rt=horde-git&r1=54a26e22e01a369372381a50d79eb655339c0956&r2=4f93f6eda3179871fad2a882fbdff0a367e9dfb9
http://git.horde.org/diff.php/ansel/scripts/remote_import.php?rt=horde-git&r1=54a26e22e01a369372381a50d79eb655339c0956&r2=4f93f6eda3179871fad2a882fbdff0a367e9dfb9
Get the canonical path to import.
Bug: 8760http://cvs.horde.org/diff.php/ansel/scripts/recursive_import.php?rt=horde&r1=1.11&r2=1.11.2.1&ty=u
can't work out how to make the option-matching code accept -s or
--secret as options, like -k or --keep currently does.
a big deal.
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.
Assigned to Michael Rubinsky
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Process subdirectories correctly and handle .files appropriately
Queue ⇒ Ansel
Milestone ⇒
Patch ⇒ No
New Attachment: diff.txt
State ⇒ New
/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.