{{newin|[[0.9.0]]|090|type=function}}
Mounts a zip file or folder in the game's save directory for reading.
It is also possible to mount [[love.filesystem.getSourceBaseDirectory]] if the game is in fused mode.

== Function ==
=== Synopsis ===
<source lang="lua">
success = love.filesystem.mount( archive, mountpoint, appendToPath )
</source>
=== Arguments ===
{{param|string|archive|The folder or zip file in the game's save directory to mount.}}
{{param|string|mountpoint|The new path the archive will be mounted to.}}
{{param|boolean|appendToPath (false)|Whether the archive will be searched when reading a filepath before or after already-mounted archives. This includes the game's source and save directories.}}
=== Returns ===
{{param|boolean|success|True if the archive was successfully mounted, false otherwise.}}

== Function ==
{{newin|[[11.0]]|110|type=variant}}
Mounts the contents of the given FileData in memory. The FileData's data must contain a zipped directory structure.
=== Synopsis ===
<source lang="lua">
success = love.filesystem.mount( filedata, mountpoint, appendToPath )
</source>
=== Arguments ===
{{param|FileData|filedata|The FileData object in memory to mount.}}
{{param|string|mountpoint|The new path the archive will be mounted to.}}
{{param|boolean|appendToPath (false)|Whether the archive will be searched when reading a filepath before or after already-mounted archives. This includes the game's source and save directories.}}
=== Returns ===
{{param|boolean|success|True if the archive was successfully mounted, false otherwise.}}

== Function ==
{{newin|[[11.0]]|110|type=variant}}
Mounts the contents of the given Data object in memory. The data must contain a zipped directory structure.
=== Synopsis ===
<source lang="lua">
success = love.filesystem.mount( data, archivename, mountpoint, appendToPath )
</source>
=== Arguments ===
{{param|Data|data|The Data object in memory to mount.}}
{{param|string|archivename|The name to associate the mounted data with, for use with [[love.filesystem.unmount]]. Must be unique compared to other mounted data.}}
{{param|string|mountpoint|The new path the archive will be mounted to.}}
{{param|boolean|appendToPath (false)|Whether the archive will be searched when reading a filepath before or after already-mounted archives. This includes the game's source and save directories.}}
=== Returns ===
{{param|boolean|success|True if the archive was successfully mounted, false otherwise.}}

== Examples ==
=== Mount a zip file. ===
<source lang="lua">
-- 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.exists("content/myimage.png"))
</source>
== See Also ==
* [[parent::love.filesystem]]
* [[love.filesystem.unmount]]
* [[love.filesystem.getSourceBaseDirectory]]
[[Category:Functions]]
{{#set:Description=Mounts a zip file or folder in the game's save directory for reading.}}
== Other Languages ==
{{i18n|love.filesystem.mount}}