Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Is there any way to recover a lost directory?
Is there any way to recover a lost directory? [message #44632] Fri, 30 May 2003 14:02 Go to next message
Eclipse UserFriend
Originally posted by: mobiko.lycos.com

Hi,

I store my subdirectory containing my images into the "Default Output
Folder" setting under Properties -> Java Build Path.

I just realised that somehow the IDE wiped off my entire "images"
directory. How can I recover my directory, and how to prevent this? Is
this an IDE bug? Or maybe I am still not familiar with Eclipse IDE.

Any advice please.

Many thanks,
mobiko
Re: Is there any way to recover a lost directory? [message #45596 is a reply to message #44632] Fri, 30 May 2003 22:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eric.rizzo.jibeinc.com

mobiko wrote:
> Hi,
>
> I store my subdirectory containing my images into the "Default Output
> Folder" setting under Properties -> Java Build Path.
>
> I just realised that somehow the IDE wiped off my entire "images"
> directory. How can I recover my directory, and how to prevent this? Is
> this an IDE bug? Or maybe I am still not familiar with Eclipse IDE.

Eclipse automatically "scrubs" a Project's output directory whenever a
full rebuild of the Project is triggered ("scrub" means "clean out
everything in the directory"). This is intended behavior. It is not
logical to place files in that directory manually - that is your build
output location, not a place to store files permanently.

You may be able to recover stuff from that directory by selecting it in
the Navigator view, right-click on the directory, and choose "Restore
from local history..."

HTH,
Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com
Re: Is there any way to recover a lost directory? [message #46559 is a reply to message #45596] Mon, 02 June 2003 11:22 Go to previous messageGo to next message
Philippe Mulet is currently offline Philippe MuletFriend
Messages: 229
Registered: July 2009
Senior Member
In 2.1, you can also tell Eclipse to no longer clean the output folder (you
are supposed to manually do so when it makes sense to you).
See preference>Java>Compiler>BuildPath>Scrub output folders on full build.

Now, if you are willing to have picture resource files on the runtime path
by putting these into the output folder, then the preferred way to achieve
this is to store these resources into a separate class folder which is
appended to your classpath (see project properties>Java Build
Path>Libraries>Add Class Folder). All resources located into a class folder
will be left untouched, and made available at runtime.

Alternatively, you could mix these files with your source files (next to
them) and then they would get duplicated into the output folder.

"Eric Rizzo" <eric.rizzo@jibeinc.com> wrote in message
news:bb8kol$i5v$1@rogue.oti.com...
> mobiko wrote:
> > Hi,
> >
> > I store my subdirectory containing my images into the "Default Output
> > Folder" setting under Properties -> Java Build Path.
> >
> > I just realised that somehow the IDE wiped off my entire "images"
> > directory. How can I recover my directory, and how to prevent this? Is
> > this an IDE bug? Or maybe I am still not familiar with Eclipse IDE.
>
> Eclipse automatically "scrubs" a Project's output directory whenever a
> full rebuild of the Project is triggered ("scrub" means "clean out
> everything in the directory"). This is intended behavior. It is not
> logical to place files in that directory manually - that is your build
> output location, not a place to store files permanently.
>
> You may be able to recover stuff from that directory by selecting it in
> the Navigator view, right-click on the directory, and choose "Restore
> from local history..."
>
> HTH,
> Eric
> --
> Eric Rizzo
> Software Architect
> Jibe, Inc.
> http://www.jibeinc.com
>
Re: Is there any way to recover a lost directory? [message #47420 is a reply to message #46559] Tue, 03 June 2003 15:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mobiko.lycos.com

Phillpe, thanks for your advice. It works. :-)

Philippe Mulet wrote:

> In 2.1, you can also tell Eclipse to no longer clean the output folder (you
> are supposed to manually do so when it makes sense to you).
> See preference>Java>Compiler>BuildPath>Scrub output folders on full build.

> Now, if you are willing to have picture resource files on the runtime path
> by putting these into the output folder, then the preferred way to achieve
> this is to store these resources into a separate class folder which is
> appended to your classpath (see project properties>Java Build
> Path>Libraries>Add Class Folder). All resources located into a class folder
> will be left untouched, and made available at runtime.

> Alternatively, you could mix these files with your source files (next to
> them) and then they would get duplicated into the output folder.

> \"Eric Rizzo\" <eric.rizzo@jibeinc.com> wrote in message
> news:bb8kol$i5v$1@rogue.oti.com...
> > mobiko wrote:
> > > Hi,
> > >
> > > I store my subdirectory containing my images into the \"Default Output
> > > Folder\" setting under Properties -> Java Build Path.
> > >
> > > I just realised that somehow the IDE wiped off my entire \"images\"
> > > directory. How can I recover my directory, and how to prevent this? Is
> > > this an IDE bug? Or maybe I am still not familiar with Eclipse IDE.
> >
> > Eclipse automatically \"scrubs\" a Project\'s output directory whenever a
> > full rebuild of the Project is triggered (\"scrub\" means \"clean out
> > everything in the directory\"). This is intended behavior. It is not
> > logical to place files in that directory manually - that is your build
> > output location, not a place to store files permanently.
> >
> > You may be able to recover stuff from that directory by selecting it in
> > the Navigator view, right-click on the directory, and choose \"Restore
> > from local history...\"
> >
> > HTH,
> > Eric
> > --
> > Eric Rizzo
> > Software Architect
> > Jibe, Inc.
> > http://www.jibeinc.com
> >
Re: Is there any way to recover a lost directory? [message #1729352 is a reply to message #47420] Wed, 13 April 2016 09:58 Go to previous messageGo to next message
Anata Chris is currently offline Anata ChrisFriend
Messages: 1
Registered: April 2016
Junior Member
I tried to recover a deleted sub directory with a free recovery app, but it even find a single file from the drive. Any ideals? It's a code folder not resource.


[Updated on: Thu, 21 April 2016 09:50]

Report message to a moderator

Re: Is there any way to recover a lost directory? [message #1733550 is a reply to message #44632] Mon, 30 May 2016 06:40 Go to previous messageGo to next message
sally redlly is currently offline sally redllyFriend
Messages: 1
Registered: May 2016
Junior Member
You still have a chance to recover your deleted directory or other data as long as they're not over-written by newly created data, then try some free Android data recovery software to scan your device.

[Updated on: Tue, 31 May 2016 02:31]

Report message to a moderator

Re: Is there any way to recover a lost directory? [message #1766034 is a reply to message #1733550] Thu, 15 June 2017 02:31 Go to previous message
Ianasksder Yang is currently offline Ianasksder YangFriend
Messages: 1
Registered: June 2017
Junior Member
sally redlly wrote on Mon, 30 May 2016 06:40
You still have a chance to recover your deleted directory or other data as long as they're not over-written by newly created data, then try some free Android memory data recovery software to scan your device.

Can't deny the data loss became common issues , Because of our phone is always in a state of update operation, the data loss is unavoidable , it is true, when we meet this problem , what we need have a solution to recover back lost data , there are many tutorials on Google

[Updated on: Tue, 20 June 2017 06:04]

Report message to a moderator

Previous Topic:Some stranges errors logs
Next Topic:Neon 3 Javascript and JSON validation
Goto Forum:
  


Current Time: Fri Mar 29 01:10:39 GMT 2024

Powered by FUDForum. Page generated in 0.07338 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top