steam_file_persisted

Syntax:

steam_file_persisted(filename);


Argument Description
filename The name of the file to check.


Returns: Boolean


Description

With this function you can check the given file to see if it has been synchronised with the Steam Cloud. A return value of true means that it is, while false means it is not.


Example:

if !steam_file_persisted("Save.txt")
   {
   steam_file_share("Save.txt");
   }

The above code will check to see if a file has been stored to the Steam Cloud, and if it has not it will then synchronise it.