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

love.filesystem.lines Iterate over the lines in a file. Function Synopsis iterator = love.filesystem.lines( name ) Arguments string name The name (and path) of the file Returns function iterator A function that iterates over all the lines in the file Example local highscores = {} for line in love.filesystem.lines("highscores.lst") do table.insert(highscores, line) end See Also love.filesystem

love.filesystem.load

love.filesystem.load Loads a Lua file (but does not run it). Function Synopsis chunk, errormsg = love.filesystem.load( name ) Arguments string name The name (and path) of the file. Returns function chunk The loaded chunk. string errormsg (nil) The error message if file could not be opened. Example It is important to note that love.filesystem.load does not invoke the code, it just creates a function (a 'chunk') that will contain the contents of the file inside it. In order to execute the

love.filesystem.mkdir

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

love.filesystem.mount

love.filesystem.mount Available since LÖVE 0.9.0 This function is not supported in earlier versions. Mounts a zip file or folder in the game's save directory for reading. Function Synopsis success = love.filesystem.mount( archive, mountpoint ) Arguments string archive The folder or zip file in the game's save directory to mount. string mountpoint The new path the archive will be mounted to. Returns boolean success True if the archive was successfully mounted, false otherwise. Functi