On Tue, Sep 30, 2008 at 1:21 PM, <[EMAIL PROTECTED]> wrote:
> Hello,
>
>
> I'm looking for a script that creates a backup of a directory but keeps only
> one backup.
> I've tried using all the os modules commands but could not create one.
>
>
> Does any one has any such custom script or function?
Hello,
I'm looking for a script that creates a backup of a directory but keeps only
one backup.
I've tried using all the os modules commands but could not create one.
Does any one has any such custom script or function?
Thanks and regards,
rajat
--
http://mail.python.org/mailman/listinfo/pyth
I wrote:
> > WindowsError: [Errno 3] : 'O:/eb/mb/S/*.*'
>
> shutil.rmtree() expects a directory name, not a file pattern. if you leave
> out the "*.*" part at the end, it should do what you want.
postscript: typically enough, I stumbled upon the same error message myself,
a day later. looks lik
i am very sorry .
the erroer was from my Portable Hard Disk
because its disk sign has changed from "o" to "h" ,from "p" to "i"
i'm very sorry
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> please don't read the prevous post ,please read this one:
>
> thank you for your suggestion and apologize for my mistake.
> if i run it and answer the raw_input with "Enter" i get
>
> sth is wrong
> press Return>
>
> i comment the try-except and run it and answer the raw
please don't read the prevous post ,please read this one:
thank you for your suggestion and apologize for my mistake.
if i run it and answer the raw_input with "Enter" i get
sth is wrong
press Return>
i comment the try-except and run it and answer the raw_input with
"Enter"
and get message fo
thank you for your suggestion and apologize for my mistake.
if i run it and answer the raw_input with "Enter" i get
sth is wrong
press Return>
i comment the try-except and run it and answer the raw_input with
"Enter"
and get message following:
Traceback (most recent call last):
File "G:\9\E
On Fri, 31 Mar 2006 18:37:11 -0800, obeeker wrote:
> """there is threee directories,one of these is used for the base
> directory,decided by the user, default is d0"""
[snip code]
It doesn't work? Have you tried running it to see what it does? When you
do, please post a description of what it do
"""there is threee directories,one of these is used for the base
directory,decided by the user, default is d0"""
import shutil
#the three directories
d0='D:/Program Files/eb/mb/S'
d1='O:/eb/mb/S'
d2='P:/S/eb/mb/S'
#to backup
def update(base):
l=[d0,d1,d2]
l.remove(base)