remove file

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
soytak111
Prole
Posts: 25
Joined: Sat Sep 17, 2022 1:00 am

remove file

Post by soytak111 »

I made a file and want to remove it in löve2d. when I use the love.filesystem.remove("wow.lua") it doesn't delete the file
lua,contrary to other language,give you as much space as moon :awesome:
User avatar
darkfrei
Party member
Posts: 1181
Joined: Sat Feb 08, 2020 11:09 pm

Re: remove file

Post by darkfrei »

soytak111 wrote: Tue Jan 16, 2024 5:21 pm I made a file and want to remove it in löve2d. when I use the love.filesystem.remove("wow.lua") it doesn't delete the file
https://love2d.org/wiki/love.filesystem.remove

Be sure that the file was closed.
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
soytak111
Prole
Posts: 25
Joined: Sat Sep 17, 2022 1:00 am

Re: remove file

Post by soytak111 »

darkfrei wrote: Tue Jan 16, 2024 9:06 pm
soytak111 wrote: Tue Jan 16, 2024 5:21 pm I made a file and want to remove it in löve2d. when I use the love.filesystem.remove("wow.lua") it doesn't delete the file
https://love2d.org/wiki/love.filesystem.remove

Be sure that the file is closed.
closed? Does the file have to be opened first?
lua,contrary to other language,give you as much space as moon :awesome:
User avatar
dusoft
Party member
Posts: 510
Joined: Fri Nov 08, 2013 12:07 am
Location: Europe usually
Contact:

Re: remove file

Post by dusoft »

soytak111 wrote: Tue Jan 16, 2024 5:21 pm I made a file and want to remove it in löve2d. when I use the love.filesystem.remove("wow.lua") it doesn't delete the file
Check that you are referring to the same path as the filesystem module is:
This module provides access to files in specific places:

The root folder of the .love archive (or source directory)
The root folder of the game's save directory.
The folder containing the game's .love archive (or source directory), but only if specific conditions are met.
https://love2d.org/wiki/love.filesystem
soytak111
Prole
Posts: 25
Joined: Sat Sep 17, 2022 1:00 am

Re: remove file

Post by soytak111 »

when I create the file, it automatically put it in appdata, so remove doesn't go there automatically?
lua,contrary to other language,give you as much space as moon :awesome:
User avatar
dusoft
Party member
Posts: 510
Joined: Fri Nov 08, 2013 12:07 am
Location: Europe usually
Contact:

Re: remove file

Post by dusoft »

It does, yes.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], pgimeno and 67 guests