love.filesystem.getRequirePath

love.filesystem.getRequirePath Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the filesystem paths that will be searched when require is called. The paths string returned by this function is a sequence of path templates separated by semicolons. The argument passed to require will be inserted in place of any question mark ("?") character in each template (after the dot characters in the argument passed to require are replaced by directory separators.)

love.filesystem.getRealDirectory

love.filesystem.getRealDirectory Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the platform-specific absolute path of the directory containing a filepath. This can be used to determine whether a file is inside the save directory or the game's source .love. Function Synopsis realdir = love.filesystem.getRealDirectory( filepath ) Arguments string filepath The filepath to get the directory of. Returns string realdir The platform-specific full path of

love.filesystem.getLastModified

love.filesystem.getLastModified Gets the last modification time of a file. Function Synopsis modtime, errormsg = love.filesystem.getLastModified( filename ) Arguments string filename The path and name to a file. Returns number modtime The last modification time in seconds since the unix epoch or nil on failure. string errormsg The error message on failure. Examples Getting the time of a file and printing it as a date. modtime, errormsg = love.filesystem.getLastModified("file.dat")   if

love.filesystem.getIdentity

love.filesystem.getIdentity Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the write directory name for your game. Note that this only returns the name of the folder to store your files in, not the full path. Function Synopsis name = love.filesystem.getIdentity( ) Arguments None. Returns string name The identity that is used as write directory. See Also love.filesystem love.filesystem.setIdentity

love.filesystem.getDirectoryItems

love.filesystem.getDirectoryItems Available since LÖVE 0.9.0 It has been renamed from love.filesystem.enumerate. Returns a table with the names of files and subdirectories in the specified path. The table is not sorted in any way; the order is undefined. If the path passed to the function exists in the game and the save directory, it will list the files and directories from both places. Function Synopsis files = love.filesystem.getDirectoryItems( dir ) Arguments string dir The directory

love.filesystem.getAppdataDirectory

love.filesystem.getAppdataDirectory Returns the application data directory (could be the same as getUserDirectory) Function Synopsis path = love.filesystem.getAppdataDirectory( ) Arguments None. Returns string path The path of the application data directory See Also love.filesystem

love.filesystem.exists

love.filesystem.exists Check whether a file or directory exists. Function Synopsis exists = love.filesystem.exists( filename ) Arguments string filename The path to a potential file or directory. Returns boolean exists True if there is a file or directory with the specified name. False otherwise. See Also love.filesystem

love.filesystem.enumerate

love.filesystem.enumerate Removed in LÖVE 0.9.0 It has been renamed to love.filesystem.getDirectoryItems. Returns a table with the names of files and subdirectories in the specified path. The table is not sorted in any way; the order is undefined. If the path passed to the function exists in the game and the save directory, it will list the files and directories from both places. Function Synopsis files = love.filesystem.enumerate( dir ) Arguments string dir The directory. Returns tab

love.filesystem.createDirectory

love.filesystem.createDirectory Available since LÖVE 0.9.0 It has been renamed from love.filesystem.mkdir. Recursively creates a directory. When called with "a/b" it creates both "a" and "a/b", if they don't exist already. Function Synopsis success = love.filesystem.createDirectory( name ) Arguments string name The directory to create. Returns boolean success True if the directory was created, false if not. See Also love.filesystem

love.filesystem.areSymlinksEnabled

love.filesystem.areSymlinksEnabled Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets whether love.filesystem follows symbolic links. Function Synopsis enabled = love.filesystem.areSymlinksEnabled( ) Arguments None. Returns boolean enable Whether love.filesystem follows symbolic links. See Also love.filesystem love.filesystem.setSymlinksEnabled love.filesystem.isSymlink