/// <inheritdoc cref="BaseStore.GetBlockPerceivedTime(BlockHash)"/> public override DateTimeOffset?GetBlockPerceivedTime(BlockHash blockHash) { UPath path = BlockPath(blockHash); return(_blockPerceptions.FileExists(path) ? (DateTimeOffset?)_blockPerceptions.GetLastWriteTime(path) : null); }
/// <summary> /// Files the get last write time. /// </summary> /// <param name="path">The path.</param> /// <returns></returns> /// <exception cref="bS.Sked2.Structure.Base.Exceptions.StorageException">Error checking file '{path.RealPath}'. - 9</exception> /// <exception cref="StorageException">Error checking file '{path.RealPath}'. - 9</exception> public DateTime FileGetLastWriteTime(IVirtualPath path) { try { return(workSpaceFileSystem.GetLastWriteTime(path.RealPath)); } catch (Exception e) { throw new StorageException(logger, $"Error checking file '{path.RealPath}'.", e, 9); } }