**This is an old revision of the document!**
Table of Contents
File system extension
This extension gives you access to the file system of the pc the game is running on.
Conditions
File or directory exists
This condition checks if the given file or directory exists on the file system.
Parameters
Path to file or directory: The absolute path to the file or directory which shall be checked for existence.
Actions
Create a directory
This action creates a new folder at the given file path.
Parameters
Directory: The absolute file path to the directory which should be created. It is advised to use the expressions for special folders (see below) to keep you game platform independent.
Expressions
These expressions return the path to special folders on the users operating system. If you use these expressions for loading and saving files it will be guaranteed to work on all supported operating systems. (Currently Windows, Linux and MacOS)
Desktop folder
This expression returns the operating system independent path to the Desktop folder of the user that runs your game.
Documents folder
This expression returns the operating system independent path to the Documents folder of the user that runs your game. This is the standard folder for storing documents.
This games executable folder
This expression returns the operating system independent path to the folder where your game is being executed from.
Pictures folder
This expression returns the operating system independent path to the Pictures folder of the user that runs your game. This is the standard folder for storing images.
Temp folder
This expression returns the operating system independent path to the Temp folder of the user that runs your game. This folder is used for temporary files that your operating system can delete any time.
Userdata folder
This expression returns the operating system independent path to the UserData folder of the user that runs your game. This folder is used for storing application settings.
Path delimiter
This expression returns the operating system independent path delimiter character. (“\” on Windows and “/” on Linux and MacOS). Use this expression to build cross platform file paths that can be accessed on all supported operating systems.
Example
In order to save a screen shot to the Pictures directory you could write:
FileSystem::PicturesPath() + FileSystem::PathDelimiter() + “my_screenshot.png”
This will work on Windows, LInux and MacOS.