Table of Contents

Method GetRelativeFilePath

Namespace
Alternet.Scripter.Debugger
Assembly
Alternet.Scripter.Common.v10.dll

GetRelativeFilePath(IScriptSourceBase, string)

Determines a difference between given path and scriptSource file path.

public static string GetRelativeFilePath(IScriptSourceBase scriptSource, string fileName)

Parameters

scriptSource IScriptSourceBase

The IScriptSourceBase contains the base path.

fileName string

Name of the file to compare.

Returns

string

A path that is relative to the given source path.