mirror of
https://github.com/AssetRipper/NativeFileDialogs.NET.git
synced 2026-11-13 18:07:38 -10:00
19 lines
420 B
C#
19 lines
420 B
C#
// Copyright (c) Speykious
|
|
// This file is part of NativeFileDialogs.NET.
|
|
// NativeFileDialogs.NET is licensed under the Zlib License. See LICENSE for details.
|
|
|
|
using System;
|
|
using NativeFileDialogs.Net;
|
|
|
|
NfdStatus result = Nfd.PickFolder(out string? outPath);
|
|
|
|
if (result == NfdStatus.Ok)
|
|
{
|
|
Console.WriteLine("Success!");
|
|
Console.WriteLine(outPath);
|
|
}
|
|
else
|
|
{
|
|
Console.WriteLine("User pressed Cancel.");
|
|
}
|