FileSystemInfo Class
NuGet: GHIElectronics.TinyCLR.IO
Assembly: GHIElectronics.TinyCLR.IO
Namespace: System.IO
Base class for objects that describe a file or directory.
public abstract class FileSystemInfo : MarshalByRefObject
Properties
FullName
public virtual string FullName { get; }
The full path of the file or directory.
Extension
public string Extension { get; }
The extension portion of the name, including the leading period.
Name
public abstract string Name { get; }
The name of the file or directory.
Exists
public abstract bool Exists { get; }
Whether the file or directory exists.
Attributes
public FileAttributes Attributes { get; }
The attributes of the file or directory.
CreationTime
public DateTime CreationTime { get; }
The creation time in local time.
CreationTimeUtc
public DateTime CreationTimeUtc { get; }
The creation time in UTC.
LastAccessTime
public DateTime LastAccessTime { get; }
The last access time in local time.
LastAccessTimeUtc
public DateTime LastAccessTimeUtc { get; }
The last access time in UTC.
LastWriteTime
public DateTime LastWriteTime { get; }
The last write time in local time.
LastWriteTimeUtc
public DateTime LastWriteTimeUtc { get; }
The last write time in UTC.
Methods
Delete()
public abstract void Delete()
Deletes the file or directory.
Refresh()
public void Refresh()
Reloads the cached metadata from the underlying file system.
RefreshIfNull()
protected void RefreshIfNull()
Loads the cached metadata if it has not been loaded yet.
Fields
m_fullPath
protected string m_fullPath
The fully qualified path of the file or directory.