Kinetica   C#   API  Version 7.2.3.1
KifsFileInfo.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 
4 namespace kinetica.FileSystem;
5 
9  public class KifsFileInfo
10  {
14  public string FileName { get; set; } = string.Empty;
15 
19  public long FileSize { get; set; }
20 
24  public string CreatedBy { get; set; } = string.Empty;
25 
29  public long CreationTime { get; set; }
30 
34  public DateTime CreationDateTime => DateTimeOffset.FromUnixTimeMilliseconds(CreationTime).DateTime;
35 
39  public IDictionary<string, string> Info { get; set; } = new Dictionary<string, string>();
40 
44  public override string ToString()
45  {
46  return $"KifsFileInfo {{ FileName='{FileName}', FileSize={FileSize}, CreatedBy='{CreatedBy}', CreationTime={CreationTime} }}";
47  }
48  }
override string ToString()
Returns a string representation of this file info.
Definition: KifsFileInfo.cs:44
Contains information about a file stored in KiFS.
Definition: KifsFileInfo.cs:9
string FileName
Gets or sets the full KiFS file name path.
Definition: KifsFileInfo.cs:14
string CreatedBy
Gets or sets the username of the user who created the file.
Definition: KifsFileInfo.cs:24
long CreationTime
Gets or sets the creation time as a Unix timestamp in milliseconds.
Definition: KifsFileInfo.cs:29
DateTime in YYYY-MM-DD HH:MM:SS.mmm format
DateTime CreationDateTime
Gets the creation time as a DateTime object.
Definition: KifsFileInfo.cs:34
long FileSize
Gets or sets the file size in bytes.
Definition: KifsFileInfo.cs:19
IDictionary< string, string > Info
Gets or sets additional information about the file.
Definition: KifsFileInfo.cs:39