Skip to content

Core.Utilities.FileUtilities

Dennis Steffen edited this page Jan 4, 2026 · 1 revision

The class is a static utility class designed to simplify file path management within your application. FileUtilities In its current implementation, it provides a single method, , which performs the following: GetFullPath

  • Locates the Application Directory: It uses to find the folder where the application's executable or binaries are located. AppDomain.CurrentDomain.BaseDirectory
  • Combines Paths safely: It takes one or more strings (using the keyword) and combines them with the base directory using . This ensures that the resulting path uses the correct directory separators for the operating system (e.g., \ on Windows or on macOS/Linux). params``Path.Combine``/
  • Returns an Absolute Path: The result is a full, absolute file system path to a specific file or directory relative to the application's root.

This is commonly used to reliably locate assets, configuration files, or data folders regardless of where the application is installed or executed from.

Clone this wiki locally