public static void SetFileProgress(string path, double percent) {
try {
Syscall.setxattr(path, extendAttrKey, Encoding.ASCII.GetBytes(percent.ToString()));
NSFileAttributes attr = NSFileManager.DefaultManager.GetAttributes(path);
attr.CreationDate = new DateTime(1984, 1, 24, 8, 0, 0, DateTimeKind.Utc);
NSFileManager.DefaultManager.SetAttributes(attr, path);
} catch (Exception ex) {
Logger.Debug(string.Format("Exception to set {0} creation time for file status update: {1}", path, ex));
}
}
}