DesktopTrashItem record

Namespace Runic.Platform in Runic.Platform 0.23.0

public sealed record DesktopTrashItem : IEquatable<DesktopTrashItem>

Inherits or implements IEquatable.

One item in the trash, as IDesktopTrash.ListAsync reports it.

Parameters

Id

The item's identifier for IDesktopTrash.RestoreAsync, stable while the item stays in the trash. Treat it as opaque.

OriginalPath

The fully qualified path the item was trashed from, where restoring puts it back.

Constructors

DesktopTrashItem

public DesktopTrashItem(string Id, string OriginalPath)

One item in the trash, as IDesktopTrash.ListAsync reports it.

Parameters

Id

The item's identifier for IDesktopTrash.RestoreAsync, stable while the item stays in the trash. Treat it as opaque.

OriginalPath

The fully qualified path the item was trashed from, where restoring puts it back.

Properties

DeletedAt

public DateTimeOffset? DeletedAt { get; init; }

When the item was moved to the trash, when known.

Id

public string Id { get; init; }

The item's identifier for IDesktopTrash.RestoreAsync, stable while the item stays in the trash. Treat it as opaque.

IsDirectory

public bool IsDirectory { get; init; }

Whether the item is a directory.

OriginalPath

public string OriginalPath { get; init; }

The fully qualified path the item was trashed from, where restoring puts it back.

Size

public long? Size { get; init; }

The item's size in bytes, when known. A directory's size is known only where the trash records it, such as the freedesktop.org directorysizes file; Runic never walks a trashed directory to measure it.