Cache icon generation on all platforms

This commit is contained in:
Joshua Granick
2015-01-07 23:09:58 -08:00
parent d22f377a0b
commit 22eb4dbc45
2 changed files with 58 additions and 46 deletions

View File

@@ -263,6 +263,19 @@ class FileHelper {
}
public static function getLastModified (source:String):Float {
if (FileSystem.exists (source)) {
return FileSystem.stat (source).mtime.getTime ();
}
return -1;
}
public static function linkFile (source:String, destination:String, symbolic:Bool = true, overwrite:Bool = false) {
if (!isNewer (source, destination)) {