Class DroppedFiles
Recognizes files dragged or pasted into the input line: terminals type them as paths, quoted, with escaped spaces, or as file:// addresses.
Inherited Members
Namespace: Uniform.Chat.Terminal.Ui
Assembly: Uniform.Chat.dll
Syntax
public static class DroppedFiles
Methods
| Edit this page View SourceParse(string, Func<string, bool>)
Return the files in text when it holds nothing but paths of existing files; an empty list when it is ordinary text.
Declaration
public static IReadOnlyList<string> Parse(string text, Func<string, bool> fileExists)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | Text of the input line. |
| Func<string, bool> | fileExists | Whether a path is an existing file; Exists(string) outside tests. |
Returns
| Type | Description |
|---|---|
| IReadOnlyList<string> |