Getting the date modified of a 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
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

Getting the date modified of a file

Post by Lap »

Is there a love.filesystem or other function to find out the latest date a file has been modified?
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: Getting the date modified of a file

Post by TechnoCat »

I don't think so. Open up an issue https://bitbucket.org/rude/love/issues
luminosity
Prole
Posts: 34
Joined: Fri Sep 24, 2010 5:46 am

Re: Getting the date modified of a file

Post by luminosity »

FWIW, my cheap hack to get around this is just to write the curent datetime to the first line of a file when I make a savegame, then when I need to find the latest save just read in every save file's first line.
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

Re: Getting the date modified of a file

Post by Lap »

Yea I was thinking about doing this since I was already hiding other descriptive info there, but there's really no reason for us to keep using this workaround, especially since it only works on savegames you create and not other files.
Post Reply

Who is online

Users browsing this forum: No registered users and 206 guests