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


Groups > comp.lang.python > #62746

Re: Recovering deleted files

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: Recovering deleted files
Date 2013-12-26 12:19 -0500
Organization IISS Elusive Unicorn
References <85df4275-b5a8-41e3-a7aa-80b640790c68@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.4637.1388078349.18130.python-list@python.org> (permalink)

Show all headers | 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