How Do I Use love.filesystem.remove?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
EchoFive
Prole
Posts: 2
Joined: Sat May 03, 2014 5:20 pm

How Do I Use love.filesystem.remove?

Post by EchoFive »

I believed that I was using it right -- I used it the same way it was used in the example on the wiki, but it doesn't remove the file.

Code: Select all

love.filesystem.remove("test.rand")
test.rand is in the same directory as main.lua. I put the above code at the top of main.lua to test if it worked, and test.rand still wasn't deleted. What am I doing wrong?
User avatar
slime
Solid Snayke
Posts: 3159
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: How Do I Use love.filesystem.remove?

Post by slime »

love.filesystem can only create/modify/remove files and folders which are in the game's save directory.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests