Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​IO.​Enumeration.​FileSystemEntry

Assembly: System.Runtime

Provides a lower level view of <see cref="T:System.IO.FileSystemInfo" /> to help process and filter find results.

Properties

Attributes
Gets the attributes for this entry.
CreationTimeUtc
Gets the creation time for the entry or the oldest available time stamp if the operating system does not support creation time stamps.
public ReadOnlySpan<​char>
Directory
Gets the full path of the directory this entry resides in.
public ReadOnlySpan<​char>
FileName
Gets the file name for this entry.
public bool
IsDirectory
Gets a value that indicates whether this entry is a directory.
public bool
IsHidden
Gets a value that indicates whether the file has the hidden attribute.
LastAccessTimeUtc
Gets a datetime offset that represents the last access time in UTC.
LastWriteTimeUtc
Gets a datetime offset that represents the last write time in UTC.
public long
Length
Gets the length of the file, in bytes.
public ReadOnlySpan<​char>
OriginalRootDirectory
Gets the root directory for the enumeration as specified in the constructor.
public ReadOnlySpan<​char>
RootDirectory
Gets the full path of the root directory used for the enumeration.

Methods

ToFileSystemInfo​()
Converts the value of this instance to a <see cref="T:System.IO.FileSystemInfo" /> .
Returns The value of this instance as a <see cref="T:System.IO.FileSystemInfo" /> .
public string
ToFullPath​()
Returns the full path of the find result.
Returns A string representing the full path.
public string
ToSpecifiedFullPath​()
Returns the full path for the find results, based on the initially provided path.
Returns A string representing the full path.
public bool
Equals​(object obj)
Inherited from ValueType
Indicates whether this instance and a specified object are equal.
Returns <see langword="true" /> if <paramref name="obj" /> and this instance are the same type and represent the same value; otherwise, <see langword="false" /> .
obj The object to compare with the current instance.
public int
GetHashCode​()
Inherited from ValueType
Returns the hash code for this instance.
Returns A 32-bit signed integer that is the hash code for this instance.
public string
ToString​()
Inherited from ValueType
Returns the fully qualified type name of this instance.
Returns The fully qualified type name.
protected void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public Type
GetType​()
Inherited from object
Gets the <see cref="T:System.Type" /> of the current instance.
Returns The exact runtime type of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Creates a shallow copy of the current <see cref="T:System.Object" /> .
Returns A shallow copy of the current <see cref="T:System.Object" /> .