Yeah, we have an attribute stored for a module called: AbsoluteDataPath which will return the directory the fullpath to the datafiles. It's built in SWMgr. There is duplicate code in src/mgr/installmgr.cpp that does the same thing (which should be removed and used AbsoluteDataPath, but give the algorithm more concisely).
Hope this helps,
-Troy.cf. /RawGenBook ftp://ftp.crosswire.org/pub/sword/source/v1.5/sword-1.5.7/src/mgr/installmgr.cpp
cf. /AbsoluteDataPath ftp://ftp.crosswire.org/pub/sword/source/v1.5/sword-1.5.7/src/mgr/swmgr.cpp
Joe Walker wrote:
Hi,
I'm adding a module downloader to JSword, and not being totally sure how to get it to work.
The current algorithm goes like this:
- download "mods.d.tar.gz" from the given directory - unpack, and select a module - from the config file for a module pick the DataPath element - download all the files from that directory (without recursing down the tree) into a directory of the same name within your sword modules tree.
However this fails because many of the DataPath elements point off into space somewhere.
Does anyone know the right algorithm?
Thanks,
Joe.
_______________________________________________ sword-devel mailing list [EMAIL PROTECTED] http://www.crosswire.org/mailman/listinfo/sword-devel
_______________________________________________ sword-devel mailing list [EMAIL PROTECTED] http://www.crosswire.org/mailman/listinfo/sword-devel
