| Reply | « Previous Thread | Next Thread » |
|
Hi!
I'm currently making a simple python script for backuping the N-Gage 2.0 files, I've tried using the shutil.copytree but the shutil.py in PyS60 doesn't contain any declarations for it. I want to copy ALL directories and files form C:\Private\20007b39 to E:\ngage_backup How can I solve my problem? |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
||
|
Quote:
You can use e32 module for copying files. From Python Reference Library: Quote:
Code:
import e32 source = 'E:\\Example.sisx' target = 'E:\\MyFolder' e32.file_copy(target, source) ![]() Although, with e32 module you can't get all the files from a folder, so you will have to list them all ![]() By the way, I don't think we have access to Private folders using PyS60. EDIT: Post number 200 ![]() Hope it helps, Rafael. |
|
Thanks,
If it's like this, I will use the e32 module I would like to know how to list the files (-_-"), I couldnt find anything in the API refrence |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
|
Quote:
Code:
import e32 source = ['E:\\Example.sisx', 'E:\\Example2.sisx', 'E:\\Example3.sisx'] target = 'E:\\MyFolder' e32.file_copy(target, source[0]) e32.file_copy(target, source[1]) e32.file_copy(target, source[2]) ![]() Hope it helps, Rafael.
Last edited by Rafael T. : 2008-10-30 at 23:24.
|
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
|
Quote:
Last edited by bogdan.galiceanu : 2008-10-31 at 05:54.
Reason: Typo
|
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
||
|
Quote:
Yes, on the previous post (the one before the code) I told him: Quote:
![]() BR, Rafael. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |