Search Results for

    Show / Hide Table of Contents

    Class SerializableFileInfo

    Unity-Serializable class for FileInfo. This class is used to serialize file information in Unity.

    Inheritance
    object
    SerializableFileInfo
    SerializableFile
    Implements
    ISerializable
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.IO.Files
    Assembly: Glitch9.IO.dll
    Syntax
    [Serializable]
    public class SerializableFileInfo : ISerializable

    Constructors

    | Edit this page View Source

    SerializableFileInfo()

    Declaration
    protected SerializableFileInfo()
    | Edit this page View Source

    SerializableFileInfo(FileInfo, string, SerializableMetadata)

    Declaration
    public SerializableFileInfo(FileInfo fileInfo, string cloudUrl = null, SerializableMetadata metadata = null)
    Parameters
    Type Name Description
    FileInfo fileInfo
    string cloudUrl
    SerializableMetadata metadata
    | Edit this page View Source

    SerializableFileInfo(SerializationInfo, StreamingContext)

    Declaration
    protected SerializableFileInfo(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info
    StreamingContext context
    | Edit this page View Source

    SerializableFileInfo(string, string, SerializableMetadata)

    Declaration
    public SerializableFileInfo(string fullPath, string cloudUrl, SerializableMetadata metadata)
    Parameters
    Type Name Description
    string fullPath
    string cloudUrl
    SerializableMetadata metadata

    Fields

    | Edit this page View Source

    attributes

    Declaration
    [SerializeField]
    protected FileAttributes attributes
    Field Value
    Type Description
    FileAttributes
    | Edit this page View Source

    cloudUrl

    Declaration
    [SerializeField]
    protected string cloudUrl
    Field Value
    Type Description
    string
    | Edit this page View Source

    contentType

    Declaration
    [SerializeField]
    [FormerlySerializedAs("mimeType")]
    protected MimeType contentType
    Field Value
    Type Description
    MimeType
    | Edit this page View Source

    creationTime

    Declaration
    [SerializeField]
    protected UnixTime creationTime
    Field Value
    Type Description
    UnixTime
    | Edit this page View Source

    creationTimeUtc

    Declaration
    [SerializeField]
    protected UnixTime creationTimeUtc
    Field Value
    Type Description
    UnixTime
    | Edit this page View Source

    fullPath

    Declaration
    [SerializeField]
    protected string fullPath
    Field Value
    Type Description
    string
    | Edit this page View Source

    guid

    Declaration
    [SerializeField]
    [FormerlySerializedAs("id")]
    protected string guid
    Field Value
    Type Description
    string
    | Edit this page View Source

    lastAccessTime

    Declaration
    [SerializeField]
    protected UnixTime lastAccessTime
    Field Value
    Type Description
    UnixTime
    | Edit this page View Source

    lastAccessTimeUtc

    Declaration
    [SerializeField]
    protected UnixTime lastAccessTimeUtc
    Field Value
    Type Description
    UnixTime
    | Edit this page View Source

    lastWriteTime

    Declaration
    [SerializeField]
    protected UnixTime lastWriteTime
    Field Value
    Type Description
    UnixTime
    | Edit this page View Source

    lastWriteTimeUtc

    Declaration
    [SerializeField]
    protected UnixTime lastWriteTimeUtc
    Field Value
    Type Description
    UnixTime
    | Edit this page View Source

    metadata

    Declaration
    [SerializeField]
    protected SerializableMetadata metadata
    Field Value
    Type Description
    SerializableMetadata

    Properties

    | Edit this page View Source

    Attributes

    Declaration
    public FileAttributes Attributes { get; set; }
    Property Value
    Type Description
    FileAttributes
    | Edit this page View Source

    CloudUrl

    URL of the file. This is used when the file is loaded from a URL. The system will try to load the file from this URL if the FullPath is null or empty, or if the file is not found.

    Declaration
    public string CloudUrl { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    ContentType

    Declaration
    public virtual MimeType ContentType { get; }
    Property Value
    Type Description
    MimeType
    | Edit this page View Source

    CreationTime

    Declaration
    public UnixTime CreationTime { get; set; }
    Property Value
    Type Description
    UnixTime
    | Edit this page View Source

    CreationTimeUtc

    Declaration
    public UnixTime CreationTimeUtc { get; set; }
    Property Value
    Type Description
    UnixTime
    | Edit this page View Source

    Directory

    Declaration
    public DirectoryInfo Directory { get; }
    Property Value
    Type Description
    DirectoryInfo
    | Edit this page View Source

    DirectoryName

    Declaration
    public string DirectoryName { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Exists

    Declaration
    public virtual bool Exists { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Extension

    Declaration
    public string Extension { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    FileInfo

    Declaration
    public FileInfo FileInfo { get; }
    Property Value
    Type Description
    FileInfo
    | Edit this page View Source

    FullName

    Declaration
    public string FullName { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    FullPath

    Declaration
    public string FullPath { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Guid

    Declaration
    public string Guid { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Id

    Declaration
    public string Id { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    IsReadOnly

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    LastAccessTime

    Declaration
    public UnixTime LastAccessTime { get; set; }
    Property Value
    Type Description
    UnixTime
    | Edit this page View Source

    LastAccessTimeUtc

    Declaration
    public UnixTime LastAccessTimeUtc { get; set; }
    Property Value
    Type Description
    UnixTime
    | Edit this page View Source

    LastWriteTime

    Declaration
    public UnixTime LastWriteTime { get; set; }
    Property Value
    Type Description
    UnixTime
    | Edit this page View Source

    LastWriteTimeUtc

    Declaration
    public UnixTime LastWriteTimeUtc { get; set; }
    Property Value
    Type Description
    UnixTime
    | Edit this page View Source

    Length

    Declaration
    public long Length { get; }
    Property Value
    Type Description
    long
    | Edit this page View Source

    Metadata

    Declaration
    public SerializableMetadata Metadata { get; set; }
    Property Value
    Type Description
    SerializableMetadata
    | Edit this page View Source

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    AppendText()

    Declaration
    public StreamWriter AppendText()
    Returns
    Type Description
    StreamWriter
    | Edit this page View Source

    CopyTo(string)

    Declaration
    public FileInfo CopyTo(string destFileName)
    Parameters
    Type Name Description
    string destFileName
    Returns
    Type Description
    FileInfo
    | Edit this page View Source

    CopyTo(string, bool)

    Declaration
    public FileInfo CopyTo(string destFileName, bool overwrite)
    Parameters
    Type Name Description
    string destFileName
    bool overwrite
    Returns
    Type Description
    FileInfo
    | Edit this page View Source

    Create()

    Declaration
    public FileStream Create()
    Returns
    Type Description
    FileStream
    | Edit this page View Source

    CreateText()

    Declaration
    public StreamWriter CreateText()
    Returns
    Type Description
    StreamWriter
    | Edit this page View Source

    Decrypt()

    Declaration
    public void Decrypt()
    | Edit this page View Source

    Delete()

    Declaration
    public void Delete()
    | Edit this page View Source

    Encrypt()

    Declaration
    public void Encrypt()
    | Edit this page View Source

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    | Edit this page View Source

    GetObjectData(SerializationInfo, StreamingContext)

    Declaration
    public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info
    StreamingContext context
    | Edit this page View Source

    MoveTo(string)

    Declaration
    public void MoveTo(string destFileName)
    Parameters
    Type Name Description
    string destFileName
    | Edit this page View Source

    Open(FileMode)

    Declaration
    public FileStream Open(FileMode mode)
    Parameters
    Type Name Description
    FileMode mode
    Returns
    Type Description
    FileStream
    | Edit this page View Source

    Open(FileMode, FileAccess)

    Declaration
    public FileStream Open(FileMode mode, FileAccess access)
    Parameters
    Type Name Description
    FileMode mode
    FileAccess access
    Returns
    Type Description
    FileStream
    | Edit this page View Source

    Open(FileMode, FileAccess, FileShare)

    Declaration
    public FileStream Open(FileMode mode, FileAccess access, FileShare share)
    Parameters
    Type Name Description
    FileMode mode
    FileAccess access
    FileShare share
    Returns
    Type Description
    FileStream
    | Edit this page View Source

    OpenRead()

    Declaration
    public FileStream OpenRead()
    Returns
    Type Description
    FileStream
    | Edit this page View Source

    OpenText()

    Declaration
    public StreamReader OpenText()
    Returns
    Type Description
    StreamReader
    | Edit this page View Source

    OpenWrite()

    Declaration
    public FileStream OpenWrite()
    Returns
    Type Description
    FileStream
    | Edit this page View Source

    Refresh()

    Declaration
    public void Refresh()
    | Edit this page View Source

    Replace(string, string)

    Declaration
    public FileInfo Replace(string destinationFileName, string destinationBackupFileName)
    Parameters
    Type Name Description
    string destinationFileName
    string destinationBackupFileName
    Returns
    Type Description
    FileInfo
    | Edit this page View Source

    Replace(string, string, bool)

    Declaration
    public FileInfo Replace(string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors)
    Parameters
    Type Name Description
    string destinationFileName
    string destinationBackupFileName
    bool ignoreMetadataErrors
    Returns
    Type Description
    FileInfo
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Implements

    ISerializable

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    FileExtensions.GetMetadata<T>(SerializableFileInfo, string)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation