love.filesystem.isFused

love.filesystem.isFused Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets whether the game is in fused mode or not. If a game is in fused mode, its save directory will be directly in the Appdata directory instead of Appdata/LOVE/. The game will also be able to load C Lua dynamic libraries which are located in the save directory. A game is in fused mode if the source .love has been fused to the executable (see Game Distribution), or if "--fused" has been g

love.filesystem.isFile

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

love.filesystem.isDirectory

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

love.filesystem.init

love.filesystem.init Initializes love.filesystem, will be called internally, so should not be used explicitly. Function Synopsis love.filesystem.init( appname ) Arguments string appname The name of the application binary, typically love. Returns Nothing. See Also love.filesystem

love.filesystem.getWorkingDirectory

love.filesystem.getWorkingDirectory Gets the current working directory. Function Synopsis cwd = love.filesystem.getWorkingDirectory( ) Arguments None. Returns string cwd The current working directory. See Also love.filesystem

love.filesystem.getUserDirectory

love.filesystem.getUserDirectory Returns the path of the user's directory Function Synopsis path = love.filesystem.getUserDirectory( ) Arguments None. Returns string path The path of the user's directory See Also love.filesystem

love.filesystem.getSourceBaseDirectory

love.filesystem.getSourceBaseDirectory Available since LÖVE 0.9.0 This function is not supported in earlier versions. Returns the full path to the directory containing the .love file. If the game is fused to the LÖVE executable, then the directory containing the executable is returned. If love.filesystem.isFused is true, the path returned by this function can be passed to love.filesystem.mount, which will make the directory containing the main game (e.g. C:\Program Files\coolgame\) readabl

love.filesystem.getSource

love.filesystem.getSource Available since LÖVE 0.9.0 This function is not supported in earlier versions. Returns the full path to the the .love file or directory. If the game is fused to the LÖVE executable, then the executable is returned. Function Synopsis path = love.filesystem.getSource( ) Arguments None. Returns string path The full platform-dependent path of the .love file or directory. See Also love.filesystem love.filesystem.isFused love.filesystem.getSourceBaseDirectory

love.filesystem.getSaveDirectory

love.filesystem.getSaveDirectory Gets the full path to the designated save directory. This can be useful if you want to use the standard io library (or something else) to read or write in the save directory. Function Synopsis dir = love.filesystem.getSaveDirectory( ) Arguments None. Returns string dir The absolute path to the save directory. See Also love.filesystem

love.filesystem.getSize

love.filesystem.getSize Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the size in bytes of a file. Function Synopsis size, errormsg = love.filesystem.getSize( filename ) Arguments string filename The path and name to a file. Returns number size The size in bytes of the file, or nil on failure. string errormsg (nil) The error message on failure. See Also love.filesystem