Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62453
| From | Anssi Saari <as@sci.fi> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Copy a file like unix cp -a --reflink |
| Date | 2013-12-20 21:17 +0200 |
| Message-ID | <vg338lne3i7.fsf@coffee.modeemi.fi> (permalink) |
| References | <l8sq0p$dd3$1@speranza.aioe.org> |
Paulo da Silva <p_s_d_a_s_i_l_v_a@netcabo.pt> writes: > Hi! > > Is there a way to copy a file the same as Unix command: > > cp -a --reflink src dest > > without invoking a shell command? I vaguely remember this was asked and answered some time ago and the answer was no, even just for -a. In fact, the python shutil module documentation starts with a warning to that effect. The --reflink stuff would be another thing altogether. More accurately, currently the only way would be to duplicate this functionality of cp in python.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Copy a file like unix cp -a --reflink Paulo da Silva <p_s_d_a_s_i_l_v_a@netcabo.pt> - 2013-12-18 18:37 +0000 Re: Copy a file like unix cp -a --reflink Joel Goldstick <joel.goldstick@gmail.com> - 2013-12-18 14:19 -0500 Re: Copy a file like unix cp -a --reflink Jerry Hill <malaclypse2@gmail.com> - 2013-12-18 14:43 -0500 Re: Copy a file like unix cp -a --reflink Anssi Saari <as@sci.fi> - 2013-12-20 21:17 +0200
csiph-web