Remove FileInfo.timeCreated
As it is not available on all platforms, we can't really rely
on it for code, and it is indeed not used anywhere.
1 parent 7feafa9 commit f70dfcad1c082b9923b4504d4e9d864c49f4d502
@Mathias Lang Mathias Lang authored on 21 Feb 2024
The Dlang Bot committed on 22 Feb 2024
Showing 1 changed file
View
5
source/dub/internal/vibecompat/core/file.d
 
/// Time of the last modification
SysTime timeModified;
 
/// Time of creation (not available on all operating systems/file systems)
SysTime timeCreated;
 
/// True if this is a symlink to an actual file
bool isSymlink;
 
/// True if this is a directory or a symlink pointing to a directory
try {
ret.isDirectory = ent.isDir;
ret.size = ent.size;
ret.timeModified = ent.timeLastModified;
version(Windows) ret.timeCreated = ent.timeCreated;
else ret.timeCreated = ent.timeLastModified;
} catch (Exception e) {
logDiagnostic("Failed to get extended file information for %s: %s", ret.name, e.msg);
}
return ret;