# Functions

EnsureDirectory ensure that dir is a directory.
FileExists returns true if the file exists.