    

 ## On this page

  

 

 # OpenTD.Utility.RootedPathname Struct Reference

 Last update: 16.07.2025 

An absolute pathname. [More...](#details)

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

 [RootedPathname](#a4c0d4804d93cc3526aba8d4fb35e7af8) (string pathname) Initializes a new instance of the [RootedPathname](struct_open_t_d_1_1_utility_1_1_rooted_pathname.xhtml "An absolute pathname.") struct, starting with a relative or absolute pathname as input.   
 string [ToLower](#aa5df236889d961edd34cc64d2cacb44f) () string [GetFileName](#a39acad774ce7316a2528d123ee321f0f) () Returns the filename and extension of the path.   
 override string [ToString](#a607cc6a365a6ca090121437a76b933fe) () ## <a id="pub-static-methods" name="pub-static-methods"></a>Static Public Member Functions

static implicit [operator RootedPathname](#a74c13323aca9af75ecf3ed409ab0ab93) (string x) static implicit [operator string](#a815280e9be3c8a881f689affa7e9ce19) ([RootedPathname](struct_open_t_d_1_1_utility_1_1_rooted_pathname.xhtml) x) <a id="details" name="details"></a>## Detailed Description

An absolute pathname.



## Constructor &amp; Destructor Documentation

<a id="a4c0d4804d93cc3526aba8d4fb35e7af8" name="a4c0d4804d93cc3526aba8d4fb35e7af8"></a>## [◆ ](#a4c0d4804d93cc3526aba8d4fb35e7af8)RootedPathname()

 OpenTD.Utility.RootedPathname.RootedPathname  ( string *pathname*)   inline 

Initializes a new instance of the [RootedPathname](struct_open_t_d_1_1_utility_1_1_rooted_pathname.xhtml "An absolute pathname.") struct, starting with a relative or absolute pathname as input.

Parameters pathnameA relative or absolute pathname.



## Member Function Documentation

<a id="a39acad774ce7316a2528d123ee321f0f" name="a39acad774ce7316a2528d123ee321f0f"></a>## [◆ ](#a39acad774ce7316a2528d123ee321f0f)GetFileName()

 string OpenTD.Utility.RootedPathname.GetFileName  ( )   inline 

Returns the filename and extension of the path.

Returns



<a id="a74c13323aca9af75ecf3ed409ab0ab93" name="a74c13323aca9af75ecf3ed409ab0ab93"></a>## [◆ ](#a74c13323aca9af75ecf3ed409ab0ab93)operator RootedPathname()

 static implicit OpenTD.Utility.RootedPathname.operator [RootedPathname](struct_open_t_d_1_1_utility_1_1_rooted_pathname.xhtml)  ( string *x*)   inlinestatic 





<a id="a815280e9be3c8a881f689affa7e9ce19" name="a815280e9be3c8a881f689affa7e9ce19"></a>## [◆ ](#a815280e9be3c8a881f689affa7e9ce19)operator string()

 static implicit OpenTD.Utility.RootedPathname.operator string  ( [RootedPathname](struct_open_t_d_1_1_utility_1_1_rooted_pathname.xhtml) *x*)   inlinestatic 





<a id="aa5df236889d961edd34cc64d2cacb44f" name="aa5df236889d961edd34cc64d2cacb44f"></a>## [◆ ](#aa5df236889d961edd34cc64d2cacb44f)ToLower()

 string OpenTD.Utility.RootedPathname.ToLower  ( )   inline 





<a id="a607cc6a365a6ca090121437a76b933fe" name="a607cc6a365a6ca090121437a76b933fe"></a>## [◆ ](#a607cc6a365a6ca090121437a76b933fe)ToString()

 override string OpenTD.Utility.RootedPathname.ToString  ( )   inline 





---

The documentation for this struct was generated from the following file:- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV\_ALPHA/buildXX/OpenTD/Utility/**RootedPathname.cs**