Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: sethjackson on May 11, 2006, 09:02:49 pm

Title: Delete file function
Post by: sethjackson on May 11, 2006, 09:02:49 pm
Hi all. I was browsing the feature requests at BerliOS, and I came across one where someone requested a Delete file feature for C::B.

After thinking about this for awhile I'm going to have to agree with mandrav. This is a bad idea in general, and shouldn't be added to C::B. So I'm removing the code from this post. ;)
Title: Re: Delete file function
Post by: mandrav on May 11, 2006, 09:22:32 pm
I 'm 100% against giving such abilities to any C::B class at the filesystem level.
Title: Re: Delete file function
Post by: sethjackson on May 11, 2006, 09:24:26 pm
I 'm 100% against giving such abilities to any C::B class at the filesystem level.

Well that settles that then......
Title: Re: Delete file function
Post by: tiger683 on May 11, 2006, 09:26:23 pm
For the sake of code itself:
you check
Code
if (!prj)
        return;
after having already used the pointer.

Besides, I think I'll use this afterall since it's usefulness defeats the risks in my case ;)

Thanks,

Rafael