[autocopy] Proposed Package

Black Hole

May contain traces of nut
I sometimes take a recording or an iPlayer download to the out-stationed HDR2 via a UPD. It would be useful to be able to give a UPD to the user and tell them to just plug it in.

Idea: a package on the HDR detects a flag file on an inserted UPD, cancels the standard USB options and copies any suitable files from the UPD to My Video, then marks the flag file to say the content has been transferred.
 
Sounds useful - is autoimport a better name?

It could be done now by putting a custom package on the disk alongside the recording but an easier mechanism would be better.
 
An opk file? Sounds good enough... it wouldn't cancel the on-screen menu without help from ir though. I don't mind what it's called, as long as it's not late-for-dinner.opk
 
Cogs whirr...

How about this: to make it ultra-universal, a plain-text command file lists specifically the files (full local path) to be copied across, where exactly each one is to go (full path), and a status flag to record whether it has been completed. A log file could be written to record any problems.

For example:
Code:
cat /media/drive1/autoimport.txt

/video/recording1.ts "/Media/My Video" do
/video/recording1.hmt "/Media/My Video" do
/video/recording1.nts "/Media/My Video" do
/video/recording1.thm "/Media/My Video" do
returns:
Code:
cat /media/drive1/autoimport.txt

/video/recording1.ts "/Media/My Video" done
/video/recording1.hmt "/Media/My Video" done
/video/recording1.nts "/Media/My Video" done
/video/recording1.thm "/Media/My Video" done
 
Back
Top