Differences
This shows you the differences between the selected revisions of the page.
| library_remotepath_getdirectoryname 2018-01-16 | library_remotepath_getdirectoryname 2023-12-20 (current) | ||
| Line 1: | Line 1: | ||
| ====== RemotePath.GetDirectoryName Method ====== | ====== RemotePath.GetDirectoryName Method ====== | ||
| Returns the directory information for the specified remote/*nix path string. | Returns the directory information for the specified remote/*nix path string. | ||
| - | |||
| - | &beta_feature | ||
| ===== Syntax ===== | ===== Syntax ===== | ||
| Line 22: | Line 20: | ||
| ===== Exceptions ===== | ===== Exceptions ===== | ||
| ^ Exception ^ Condition ^ | ^ Exception ^ Condition ^ | ||
| - | | ArgumentException | ''path'' is empty. | | + | | ArgumentException | ''path'' is empty.((Note that this behaviour is inconsistent with ''Path.GetDirectoryName'' in .NET Core 2.1 and newer, which instead returns ''null''.)) | |
| ===== Remarks ===== | ===== Remarks ===== | ||
| In most cases, the string returned by this method consists of all characters in the ''path'' up to but not including the last slash (''/''). | In most cases, the string returned by this method consists of all characters in the ''path'' up to but not including the last slash (''/''). | ||
| - | The method is an equivalent of the standard ''[[msdn>System.IO.Path.GetDirectoryName|Path.GetDirectoryName]]'' method for remote/*nix paths. | + | The method is an equivalent of the standard ''[[dotnet>System.IO.Path.GetDirectoryName|Path.GetDirectoryName]]'' method for remote/*nix paths. |