request: File copy script
#1
Heya. Im a flash developer and a total python noob.

I'm looking for a script that I can run that will copy all the thumbnails from a directory (eg: E\Userdata\thumbnails) to the c:\web\.. directory, recursively and overwriting all previous images in the folder.

Im building a flash interface to the http Interface and this script will allow for the thumbnails to be visible.

Another question: Once such a script exists, is it possible to have it called after a scan all to database call?

Cheers
Mark
Reply
#2
Take a look at GammaX... http://2ndmind.net/xnetload

It has a file copy function. You should be able to adapt that.

btw...

If you get everything running and want to do me a favor (I'm sure others would use it too); I have never gotten the XBMC Update portion of it to work. Running the script on the XBOX is supposed to copy files from your PC (SMB share) to the XBOX... thus updating the files you want , and not the ones you don't. e.g. custom files you do not want overwritten.

Maybe you can get it working properly and create a stand-alone script for doing updates and backups (to PC/SMB)?
I'm not an expert but I play one at work.
Reply
#3
C'mon dude.. So you're a python noob.. The program you need is basically a useful version of "Hello World".. There really isn't a simpler project to start with..
If you wanna try it yourself try googling:
Python "os.path" stat
I doubt you'll need stat for your purposes though which will make it easier..
A while back I created a script designed to boot an old xbmc.xbe with bare minimum support files off a cd which would launch an autoexec.py designed to perform some heavy duty file/network operations listed in an .ini, but honestly you could write what you need long before I get around to posting that again..
Reply

Logout Mark Read Team Forum Stats Members Help
request: File copy script0