Sets the write directory for your game. 
Note that you can only set the name of the folder to store your files in, not the location.
== Function ==
=== Synopsis ===
<source lang="lua">
love.filesystem.setIdentity( name )
</source>
=== Arguments ===
{{param|string|name|The new identity that will be used as write directory.}}
=== Returns ===
Nothing.
== Function ==
{{newin|[[0.9.0]]|090|type=variant}}
=== Synopsis ===
<source lang="lua">
love.filesystem.setIdentity( name, appendToPath )
</source>
=== Arguments ===
{{param|string|name|The new identity that will be used as write directory.}}
{{param|boolean|appendToPath (false)|Whether the identity directory will be searched when reading a filepath before or after the game's source directory and any currently.
TRUE: results in searching source before searching save directory;
FALSE: results in searching game save directory before searching source directory[[love.filesystem.mount|mounted]] archives.}}

=== Returns ===
Nothing.

== Examples ==
=== Setting the game folder name ===
<source lang="lua">
-- Yes:
love.filesystem.setIdentity("monkey_doom_2")
-- No: 
love.filesystem.setIdentity("c:/Users/bob/monkey_doom_2")
</source>
=== Setting which to search first ===
<source lang="lua">
--Search Source, then the save directory
love.filesystem.setIdentity(love.filesystem.getIdentity(),true)
--Search Save directory, then the Source Directory
love.filesystem.setIdentity(love.filesystem.getIdentity(),false)
</source>

== See Also ==
* [[parent::love.filesystem]]
* [[love.filesystem.getIdentity]]
[[Category:Functions]]
{{#set:Description=Sets the write directory for your game.}}
{{#set:Since=000}}
== Other Languages ==
{{i18n|love.filesystem.setIdentity}}