Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #22541
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | HoneyMonster <someone@someplace.invalid> |
| Newsgroups | comp.lang.python |
| Subject | Re: No os.copy()? Why not? |
| Date | Mon, 2 Apr 2012 21:11:52 +0000 (UTC) |
| Organization | albasani.net |
| Lines | 15 |
| Message-ID | <jld4mo$tmp$1@news.albasani.net> (permalink) |
| References | <38b3fc48-1d05-4373-b32e-64da95173864@pz2g2000pbc.googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.albasani.net /73eAay9EcXPdEPCSXlivP01fnORlQu7P5q99+gKvHjVFtcgRds37QTnLJ96Z8d3PROwZX7IxvFOkaqdCOQ+6Q== |
| NNTP-Posting-Date | Mon, 2 Apr 2012 21:11:52 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="G7MVpe1wl/kqOJsbmLaTwtNguMnq3ExcTzSDB0JPzAFShmk3LEZSXQEjUTi+wqqoSFD2C51P3an/KRuQq4V7fkr6Rd5wr0sOgVW7DpkkK2d7gmCQjjv+1yW9JKJxyEIz"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) |
| Cancel-Lock | sha1:sNu+6ENgV62gmAbOKz9NMsviNbM= |
| Xref | csiph.com comp.lang.python:22541 |
Show key headers only | View raw
On Wed, 28 Mar 2012 13:12:30 -0700, John Ladasky wrote:
> I'm looking for a Python (2.7) equivalent to the Unix "cp" command.
> Since the equivalents of "rm" and "mkdir" are in the os module, I
> figured I look there. I haven't found anything in the documentation.
> I am also looking through the Python source code in os.py and its child,
> posixfile.py.
>
> Any help? Thanks.
One way:
import os
os.system ("cp src sink")
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
No os.copy()? Why not? John Ladasky <john_ladasky@sbcglobal.net> - 2012-03-28 13:12 -0700
Re: No os.copy()? Why not? alex23 <wuwei23@gmail.com> - 2012-03-28 21:50 -0700
Re: No os.copy()? Why not? John Ladasky <john_ladasky@sbcglobal.net> - 2012-03-30 02:25 -0700
Re: No os.copy()? Why not? Ian Kelly <ian.g.kelly@gmail.com> - 2012-04-02 14:48 -0600
Re: No os.copy()? Why not? HoneyMonster <someone@someplace.invalid> - 2012-04-02 21:11 +0000
Re: No os.copy()? Why not? Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2012-04-03 08:24 +0200
Re: No os.copy()? Why not? John Ladasky <john_ladasky@sbcglobal.net> - 2012-04-03 02:34 -0700
Re: No os.copy()? Why not? Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2012-04-04 14:30 +0200
Re: No os.copy()? Why not? Ian Kelly <ian.g.kelly@gmail.com> - 2012-04-03 10:29 -0600
Re: No os.copy()? Why not? D'Arcy Cain <darcy@druid.net> - 2012-04-03 15:46 -0400
Re: No os.copy()? Why not? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-04-04 05:53 +0000
Re: No os.copy()? Why not? Chris Angelico <rosuav@gmail.com> - 2012-04-04 18:37 +1000
Re: No os.copy()? Why not? Steve Howell <showell30@yahoo.com> - 2012-04-04 08:15 -0700
Re: No os.copy()? Why not? Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2012-04-04 11:22 +0200
Re: No os.copy()? Why not? Roy Smith <roy@panix.com> - 2012-04-04 08:14 -0400
Re: No os.copy()? Why not? Nobody <nobody@nowhere.com> - 2012-04-04 20:37 +0100
Re: No os.copy()? Why not? Roy Smith <roy@panix.com> - 2012-04-04 08:08 -0400
Re: No os.copy()? Why not? Chris Angelico <rosuav@gmail.com> - 2012-04-04 22:17 +1000
Re: No os.copy()? Why not? Tycho Andersen <tycho@tycho.ws> - 2012-04-03 15:10 -0500
Re: Re: No os.copy()? Why not? Evan Driscoll <driscoll@cs.wisc.edu> - 2012-04-03 15:21 -0500
csiph-web