PathExtensions.

ExpandShortPath(FilePath) Method

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 FilePath ExpandShortPath(this FilePath path)

Parameters

Name Type Description
path FilePath The path to check.

Return Value

Type Description
FilePath The path for which, if available, the short paths are expanded to long paths.