CodeIgniter Forums
File Helper -- No delete_file? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: File Helper -- No delete_file? (/showthread.php?tid=22254)



File Helper -- No delete_file? - El Forum - 09-02-2009

[eluser]rvillalon[/eluser]
There's a

delete_files() but nothing to delete just one file?

I tried placing a file path in the helper function, but doesn't seem to work for single files?


File Helper -- No delete_file? - El Forum - 09-02-2009

[eluser]rvillalon[/eluser]
There seems to be a delete file function for the FTP class though. Is this what I should be using?


File Helper -- No delete_file? - El Forum - 09-02-2009

[eluser]garymardell[/eluser]
or just use @unlink(); to remove the file, you don't need to use the helpers.


File Helper -- No delete_file? - El Forum - 09-02-2009

[eluser]rvillalon[/eluser]
haha yea that works too. i was just wondering if CI had one. sorry.