public static int UpdateTimes(ConversionStorage<MutableString>/*!*/ toPath, RubyClass/*!*/ self, [NotNull]RubyTime/*!*/ accessTime, [NotNull]RubyTime/*!*/ modifiedTime,
object path) {
string strPath = self.Context.DecodePath(Protocols.CastToPath(toPath, path));
FileInfo info = new FileInfo(strPath);
if (!info.Exists) {
throw RubyExceptions.CreateENOENT("No such file or directory - {0}", strPath);
}
info.LastAccessTimeUtc = accessTime.ToUniversalTime();
info.LastWriteTimeUtc = modifiedTime.ToUniversalTime();
return 1;
}