[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldsync-hackers] file upload/download



On Sunday 27 June 2004 12:29, Christophe Beauregard wrote:

> > 	But this brings up a good point: the Zire can read non-Palm
> > files on its expansion card (in particular, MP3 and JPEG files). Since
> > I have a card reader, transferring files back and forth hasn't been an
> > issue for me, but would it be a desirable feature for ColdSync to be
> > able to copy arbitrary files to and from the expansion card?
>
> Yeah, I was thinking that as I wrote it. The simplest solution would be
> for the installation logic to grab anything in the .palm/install
> directory and, if a card is present, drop it there. You'd probably need
> some kind of table mapping extensions to card directories or something.
...
> It would also be handy to have "converter conduits" which could reformat
> before install. i.e. automagically convert HTML to Doc, Ogg to MP3,
> GIF/PNG to JPEG, etc. Might be too slow to do during sync though.

I thought about this a bit more. My palmify script is stupid, overly 
complicated, and KDE-dependent. 

So I broke it down into three separate sync conduits: install-text, 
install-html, and install-pdf. Configuration is done via coldsync.conf 
(these are all type:none conduits, don't trust -config) while
converting/installing a file is a matter of dropping it into the 
~/.palm/install directory and synching.

It would be nice if the install flavour supported SPC. Then any installation 
options would be able to control these conduits (i.e. install_first).

The only downside of this approach that I can see is the format conversion 
being done at sync time. I'm not sure how much of a problem that might be. 
I don't find it terribly slow, but my test files have been under 300k.

Anyhow, conduits attached, watch 
http://www3.sympatico.ca/lou.latendresse/coldsync/ for updates, 
comments/questions, etc.

I also threw together an install-vfs conduit just to see what it would look 
like. Totally untested as I don't have any cards handy at the moment. If 
anyone cares to have a go at it and gets it working, let me know.

c.

Attachment: install-html
Description: Perl program

Attachment: install-pdf
Description: Perl program

Attachment: install-text
Description: Perl program

Attachment: install-vfs
Description: Perl program