public sealed record RunicDroppedFile : IEquatable<RunicDroppedFile> A file or directory dropped onto a Window.
Parameters
PathThe absolute local path, from the native window. In a Flatpak sandbox it is a document-portal path under
/run/user/<uid>/doc; in a macOS App Sandbox the drop grants access while the application runs.IsDirectoryWhether the path was a directory when it was dropped.
Constructors
RunicDroppedFile
public RunicDroppedFile(string Path, bool IsDirectory) A file or directory dropped onto a Window.
Parameters
PathThe absolute local path, from the native window. In a Flatpak sandbox it is a document-portal path under
/run/user/<uid>/doc; in a macOS App Sandbox the drop grants access while the application runs.IsDirectoryWhether the path was a directory when it was dropped.
Properties
IsDirectory
public bool IsDirectory { get; init; } Whether the path was a directory when it was dropped.
Name
public string Name { get; } Gets the file or directory name, the last segment of RunicDroppedFile.Path.
Path
public string Path { get; init; } The absolute local path, from the native window. In a Flatpak sandbox it is a document-portal path under /run/user/<uid>/doc; in a macOS App Sandbox the drop grants access while the application runs.
Methods
FromPath
public static RunicDroppedFile FromPath(string path) Creates the description of a dropped path, reading whether it is a directory.
Parameters
pathThe absolute local path.
Exceptions
ArgumentExceptionpathis empty or not absolute.