RavenFS.Synchronization.ContentUpdateWorkItem.GetLocalFileDataInfo C# (CSharp) Method

GetLocalFileDataInfo() private method

private GetLocalFileDataInfo ( string fileName ) : DataInfo
fileName string
return DataInfo
		private DataInfo GetLocalFileDataInfo(string fileName)
		{
			FileAndPages fileAndPages = null;

			try
			{
				Storage.Batch(accessor => fileAndPages = accessor.GetFile(fileName, 0, 0));
			}
			catch (FileNotFoundException)
			{
				return null;
			}
			return new DataInfo
				       {
					       CreatedAt = Convert.ToDateTime(fileAndPages.Metadata["Last-Modified"]).ToUniversalTime(),
					       Length = fileAndPages.TotalSize ?? 0,
					       Name = fileAndPages.Name
				       };
		}