}
#else
struct utimbuf t = { (int)accessed, (int)modified };
+#if !defined(__pnacl__)
if(!utime(fileName, &t))
result = true;
#endif
+#endif
}
return result;
}
strcat(file.path, file.name);
if(!stat(file.path, &s))
{
+#if !defined(__pnacl__)
file.stats.attribs = (s.st_mode&S_IFDIR) ? FileAttribs { isDirectory = true } : FileAttribs { isFile = true };
file.stats.size = (FileSize)s.st_size;
file.stats.accessed = s.st_atime;
file.stats.modified = s.st_mtime;
file.stats.created = s.st_ctime;
+#endif
}
strcpy(d.name, path);
strcat(path, name);
if(!stat(path, &s))
{
+#if !defined(__pnacl__)
stats.attribs = FileAttribs { };
stats.attribs = (s.st_mode&S_IFDIR) ? FileAttribs { isDirectory = true } : FileAttribs { isFile = true };
stats.size = (FileSize)s.st_size;
stats.accessed = s.st_atime;
stats.modified = s.st_mtime;
stats.created = s.st_ctime;
+#endif
}
result = this;
}