Deleting all created files
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Deleting all created files
I wonder how can I remove all files that were created before? I know that love.filesystem.remove() can't remove folder that got something in it. Any advices?
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Deleting all created files
You can use love.filesystem.enumerate to get a list of all files in a directory. Can you figure it out from there, or do you need an example?
Help us help you: attach a .love.
Re: Deleting all created files
No, I got the idea. I have to use enumerate and then remove all stuff step-by-step. Thanks.Robin wrote:You can use love.filesystem.enumerate to get a list of all files in a directory. Can you figure it out from there, or do you need an example?
And... is there a way to rename file or folder? I can rewrite all stuff in one folder to another and then remove the first one, but that seems to be a lot of work for such a small deal.
Who is online
Users browsing this forum: Ahrefs [Bot], charryxopow and 53 guests