Added functions createFolder, existsFolder and existsFile.