how to copy and move file with its attribute?
Alban Nona
python.koda at gmail.com
Mon Jul 19 12:38:47 EDT 2010
Hello,
About this one. I tried the os.system copy. But it seems I cant find the
right syntax.
*os.system ("xcopy /s %s %s" % (dirname1, dirname2))*
This one seems to not working.
Is there anyway I can do this way:
localpath= c:\
networkpath=g:\
os.system("copy localpath networkpath)
I tried many variations, but still not working. Any help will apreciated :/
Thanks !
2010/7/19 Vlastimil Brom <vlastimil.brom at gmail.com>
> 2010/7/19 oyster <lepto.python at gmail.com>:
> > I mean writeonly, hidden, system and so on attributes
> >
> > I use windows, but if possible, is there any method to do so in a
> > crossplatfrom way?
> >
> > thanks
> > --
> > http://mail.python.org/mailman/listinfo/python-list
> >
>
> You may check to see several possibilities
> http://timgolden.me.uk/python/win32_how_do_i/copy-a-file.html
> Probably the shutil module might be appropriate for simple usecases.
>
> hth,
> vbr
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100719/ae9dec03/attachment.html>
More information about the Python-list
mailing list