Summary
Expands short paths (e.g. C:/Users/ABCDEF~1) to long paths (e.g. C:/Users/abcdefghij).
Note that this method only works for absolute paths, as relative paths cannot be expanded without impact.
- Namespace
- Cake
.Core .IO - Containing Type
- PathExtensions
Syntax
public static DirectoryPath ExpandShortPath(this DirectoryPath path)
Parameters
Name | Type | Description |
---|---|---|
path | DirectoryPath | The path to check. |
Return Value
Type | Description |
---|---|
DirectoryPath | The path for which, if available, the short paths are expanded to long paths. |