public GetLastAccessed ( string path ) : DateTimeOffset | ||
path | string | |
리턴 | DateTimeOffset |
public DateTimeOffset GetLastAccessed(string path)
{
path = GetFullPath(path);
if (File.Exists(path))
{
return File.GetLastAccessTimeUtc(path);
}
return Directory.GetLastAccessTimeUtc(path);
}