Skip to main content

ASPxClientFileManager.GetCurrentFolderPath Method

Gets the current folder’s path with the specified settings.

Declaration

GetCurrentFolderPath(
    separator?: string,
    skipRootFolder?: boolean
): string

Parameters

Name Type Description
separator string

A string value that specifies the separator between the folder’s name within the path.

skipRootFolder boolean

true to skip the root folder; otherwise, false.

Returns

Type Description
string

A string value that represents the path to the folder.

Remarks

Use the GetCurrentFolderPath method to get the path to the current folder with the specified settings. You can get the path with the root folder or the name with the default separator (“\“), using the method with the appropriate parameters.

Example

The code below demonstrates how you can get and save the path of a current folder.

function savePath (){
     var path = fileManager.GetCurrentFolderPath('>',true);
}
See Also