Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62746

Re: Recovering deleted files

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.019
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:files': 0.09; 'python': 0.11; '(it': 0.16; 'blindly': 0.16; 'dst)': 0.16; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'files.': 0.16; 'wed,': 0.18; 'trying': 0.19; 'directory.': 0.24; 'url:home': 0.24; 'source': 0.25; 'help!': 0.26; 'header:X -Complaints-To:1': 0.27; 'tried': 0.27; 'dec': 0.30; 'george': 0.31; 'txt': 0.31; 'file': 0.32; 'charset:us-ascii': 0.36; 'to:addr:python-list': 0.38; 'files': 0.38; 'does': 0.39; 'delete': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'read': 0.60; 'lost': 0.61; 'new': 0.61; 'carefully': 0.74; 'destination': 0.91; 'recover': 0.91; 'received:108': 0.93; '2013': 0.98
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: Recovering deleted files
Date Thu, 26 Dec 2013 12:19:06 -0500
Organization IISS Elusive Unicorn
References <85df4275-b5a8-41e3-a7aa-80b640790c68@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host adsl-108-68-178-129.dsl.klmzmi.sbcglobal.net
X-Newsreader Forte Agent 6.00/32.1186
X-No-Archive YES
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4637.1388078349.18130.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388078349 news.xs4all.nl 2943 [2001:888:2000:d::a6]:38325
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:62746

Show key headers only | View raw


On Wed, 25 Dec 2013 20:44:39 -0800 (PST), George Tang <geosxbox@gmail.com>
declaimed the following:

>I am new to python and was trying to program with txt files, and tried to move the txt file to a new directory. i did not read very carefully about what shutil.move(src, dst) does and it deleted some of my files. How do i recover my lost files. plz help!

	If I read the documents properly, shutil.move() does not just blindly
delete files (it does a copy/delete if crossing file systems, otherwise it
just does a rename).

	So where did to instruct it to put what had been the source
file/directory? Look in that destination location...
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Recovering deleted files George Tang <geosxbox@gmail.com> - 2013-12-25 20:44 -0800
  Re: Recovering deleted files Chris Angelico <rosuav@gmail.com> - 2013-12-27 02:45 +1100
  Re: Recovering deleted files Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-12-26 12:19 -0500
    Re: Recovering deleted files Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-27 09:37 +1100
  Re: Recovering deleted files Rick Johnson <rantingrickjohnson@gmail.com> - 2013-12-26 16:10 -0800

csiph-web