Skip to content

Commit 793c90f

Browse files
committed
Added Path_GetDirectoryName article
1 parent 8a43d8a commit 793c90f

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Path_GetDirectoryName
2+
3+
`Path_GetDirectoryName` returns the directory information for the specified path string.
4+
5+
```csharp
6+
Path_GetDirectoryName (
7+
@path NVARCHAR (4000)
8+
)
9+
RETURNS NVARCHAR (4000)
10+
```
11+
12+
## Parameters
13+
14+
- **path**: The path of a file or directory.
15+
16+
## Returns
17+
18+
- Directory information for `path`, or `null` if path denotes a root directory or is `null`. Returns Empty if `path` does not contain directory information.
19+
20+
## Example
21+
22+
```csharp
23+
SELECT SQLNET::Path_GetDirectoryName('C:\Temp\MyTest.txt')
24+
```

docs2/pages/documentations/path/path.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ Performs operations on string instances that contain file or directory path info
66
| :--- | :---------- | :------ |
77
| [Path_ChangeExtension(path, extension)](/path-change-extension) | Changes the extension of a path string. | [Try it]()|
88
| [Path_Combine(path1, path2)](/path-combine) | Combines two strings into a path. | [Try it]()|
9+
| [Path_GetDirectoryName(path)](/path-get-directory-name) | Returns the directory information for the specified path string. | [Try it]()|

0 commit comments

Comments
 (0)