Skip to main content
Version: 1.0.0-preview.33

Velaptor.Content.IContentPathResolver

Velaptor

Velaptor.Content

IContentPathResolver Interface

Resolves file paths.

public interface IContentPathResolver

Properties

ContentDirectoryName

Gets the name of the content directory.

string ContentDirectoryName { get; }

Property Value

System.String

Remarks

This directory is not a path. It is just a name and is always located
as a child directory of the RootDirectoryPath.

If the value is a file path, the file name will be stripped and the
deepest child directory name will be used.

RootDirectoryPath

Gets the root directory of the content.

string RootDirectoryPath { get; }

Property Value

System.String

Methods

ResolveDirPath()

Resolves the full directory path to some content.

string ResolveDirPath();

Returns

System.String
The directory only path to some content.

ResolveFilePath(string)

Resolves the full file path to a content item that matches the given contentName.

string ResolveFilePath(string contentName);

Parameters

contentName System.String

The name of the content item with or without the file extension.

Returns

System.String
The RootDirectoryPath, content file name, and the ContentDirectoryName combined.