Click or drag to resize

PathConverterAbsoluteToRelativePaths Method

Converts a collection of absolute paths (root + /Files/ + path) to their relative file paths ([Public/Private/ReadOnly] + path) based on the specified user and root directory.

Namespace: Canary.Axiom.Shared.FilePath
Assembly: Canary.Axiom.Shared (in Canary.Axiom.Shared.dll) Version: 25.6.0.25344+3070493948bf7d32a86bd3e9a8bcf4cc9a5b1929
Syntax
C#
public static PathConverterPathMap[] AbsoluteToRelativePaths(
	IEnumerable<string> absolutePaths,
	string userName,
	string root
)

Parameters

absolutePaths  IEnumerableString
The absolute (or actual file system) paths to convert. (Must start with root)
userName  String
The user name associated with the file paths.
root  String
The root directory for user data in the file system.

Return Value

PathConverterPathMap
An array of path mappings, each containing the absolute path and their corresponding relative file path.
Exceptions
ExceptionCondition
InvalidOperationException Thrown if any absolute path does not start with the specified user data root.
See Also