love.filesystem.isSymlink

love.filesystem.isSymlink Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets whether a filepath is actually a symbolic link. If symbolic links are not enabled (via love.filesystem.setSymlinksEnabled), this function will always return false. Function Synopsis symlink = love.filesystem.isSymlink( path ) Arguments string path The file or directory path to check. Returns boolean symlink True if the path is a symbolic link, false otherwise. See Also love

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.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