love.filesystem.unmount

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Unmounts a zip file or folder previously mounted for reading with love.filesystem.mount.

Function

Synopsis

success = love.filesystem.unmount( archive )

Arguments

string archive
The folder or zip file in the game's save directory which is currently mounted.

Returns

boolean success
True if the archive was successfully unmounted, false otherwise.

Examples

Mount a zip file and then unmount it.

-- Assuming content.zip exists in the game's save directory and contains a file called 'myimage.png'.
love.filesystem.mount("content.zip", "content")
assert(love.filesystem.getInfo("content/myimage.png"))
 
love.filesystem.unmount("content.zip")
assert(not love.filesystem.getInfo("content/myimage.png"))

See Also

© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.filesystem.unmount