Cache icon generation on all platforms
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user