Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'module,': 0.05; 'shutil': 0.07; 'python': 0.09; 'command.': 0.09; 'received:mail- lpp01m010-f46.google.com': 0.09; 'wraps': 0.09; 'cc:addr:python- list': 0.10; 'subject:not': 0.11; 'equivalent': 0.12; 'module': 0.15; '28,': 0.16; 'equivalents': 0.16; 'help?': 0.16; 'subject:Why': 0.16; 'module.': 0.17; 'shell': 0.18; 'wed,': 0.18; 'wrote:': 0.19; 'header:In-Reply-To:1': 0.22; "haven't": 0.24; 'message-id:@mail.gmail.com': 0.24; 'cc:2**0': 0.26; 'unix': 0.26; 'cc:no real name:2**0': 0.27; 'cc:addr:python.org': 0.28; 'there.': 0.28; 'source': 0.29; "i'm": 0.29; 'received:209.85.215.46': 0.30; 'received:209.85': 0.32; 'received:google.com': 0.32; 'code': 0.32; 'pm,': 0.34; 'received:209': 0.35; 'subject:?': 0.35; 'received:209.85.215': 0.37; 'subject:: ': 0.37; 'anything': 0.38; 'header:Received:5': 0.40; '2012': 0.62; 'john': 0.64; 'calls,': 0.84; 'child,': 0.84; 'commands.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=8ZPaSraO5rr24NUH9oRYBfj9KlT5v0KCepBg5Djv1HA=; b=HmKoBVHDxN2MVb/qqy0euzHZ9nbc82Z+R2pvvYhGe+rEB62+M+OEVbqmPnzC3h8B6T 2UWdviqlHdmuRpcq2ik9tQdOJCeoYmPK51mHYWGS05Vv3ecCShpkwMKWKo2vXlg5eCxj fGPh7H2pxeQ0zFMsg1vFnrpbPyXOxqCuJPz0vi9UXinEu5J/1hjlFfPvf96ATVteaeDk NgQuEnR8rn6zXfwjdamu8G0pKQhxpU/WcpqbcAoI5EWtxbm5c5NdiM032k0rOvJx2c1E 42FQbil91yXvJreH+9FF5m38KYN76r9KFt0eH34Oy6meX1BXqwMGea7ldATMJHuz71KR yGdw== MIME-Version: 1.0 In-Reply-To: <38b3fc48-1d05-4373-b32e-64da95173864@pz2g2000pbc.googlegroups.com> References: <38b3fc48-1d05-4373-b32e-64da95173864@pz2g2000pbc.googlegroups.com> From: Ian Kelly Date: Mon, 2 Apr 2012 14:48:38 -0600 Subject: Re: No os.copy()? Why not? To: John Ladasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1333399751 news.xs4all.nl 6982 [2001:888:2000:d::a6]:57732 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:22539 On Wed, Mar 28, 2012 at 2:12 PM, 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. =A0I 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? =A0Thanks. The os module wraps system calls, not shell commands. You want the shutil module, not the os module.