Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'subject:file': 0.07; 'cc:addr:python-list': 0.11; 'command:': 0.16; 'dest': 0.16; 'invoking': 0.16; 'paulo': 0.16; 'src': 0.16; 'symlink': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'pfxlen:0': 0.19; 'shell': 0.22; 'cc:addr:python.org': 0.22; 'subject:like': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'unix': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'file': 0.32; 'url:python': 0.33; 'received:google.com': 0.35; 'there': 0.35; 'url:listinfo': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'pm,': 0.38; 'url:mail': 0.40; 'joel': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=75RnkaFJmWDg5p1M07fYfaHy69GySuVqPtUbzG+q4gs=; b=fegfWN0z9hZUou6U35Y7GIPhS63x7jQj44U3XPE8Rjrjt7Eh+3mWa8OjhNlKo0wMbM C2CA6fPYVs1LAy7b0d9W6/MkGRMXvYRcwVGjvP9GlC/8ihm5QNUrvDPv4AP1V10sPWvJ mQ/Stvm2rVQ/vSEAw5Pfq/sro7624yx0McQmiRQS++vobkLj+WHvOCgpDrprYul8nK9R GHzaIrGkJ3AJLDRoq4GdBdBOkgEohuLumraEhUagGbJ/LLvPCyayaViBT+LfOE4vbMAh Jone3azQ+8dPYTlqQIHxppWNQw4+lfgfxcYaK1slYgzN2+XiFFs5SsyJL+iPSXFeArbO Ci2Q== MIME-Version: 1.0 X-Received: by 10.52.190.131 with SMTP id gq3mr3328953vdc.18.1387394387350; Wed, 18 Dec 2013 11:19:47 -0800 (PST) In-Reply-To: References: Date: Wed, 18 Dec 2013 14:19:47 -0500 Subject: Re: Copy a file like unix cp -a --reflink From: Joel Goldstick To: Paulo da Silva Content-Type: multipart/alternative; boundary=089e011846ee9f3c5304edd3edf7 Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 61 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387394703 news.xs4all.nl 2926 [2001:888:2000:d::a6]:49102 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62332 --089e011846ee9f3c5304edd3edf7 Content-Type: text/plain; charset=UTF-8 On Wed, Dec 18, 2013 at 1:37 PM, Paulo da Silva < p_s_d_a_s_i_l_v_a@netcabo.pt> wrote: > Hi! > > Is there a way to copy a file the same as Unix command: > > cp -a --reflink src dest > > without invoking a shell command? > > Thanks > -- > https://mail.python.org/mailman/listinfo/python-list > You want to make a symlink to a file ini python. I think this might get you there: http://stackoverflow.com/questions/4847615/copying-a-symbolic-link-in-python -- Joel Goldstick http://joelgoldstick.com --089e011846ee9f3c5304edd3edf7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Wed, Dec 18, 2013 at 1:37 PM, Paulo da Silva &= lt;p_s_d_= a_s_i_l_v_a@netcabo.pt> wrote:
Hi!

Is there a way to copy a file the same as Unix command:

cp -a --reflink src dest

without invoking a shell command?

Thanks
--
https://mail.python.org/mailman/listinfo/python-list

You w= ant to make a symlink to a file ini python.=C2=A0 I think this might get yo= u there:

http://stackoverflow.com/questions/4847615/co= pying-a-symbolic-link-in-python


--
--089e011846ee9f3c5304edd3edf7--