path

Gets the path that the FileManager is navigated to.

Returns

String The current active path.

Example

<div id="fileManager"></div>
<script>
    var myData = [{
        name: "Folder",
        isDirectory: true,
        hasDirectories: false,
        path: "folder",
        extension: "",
        size: 0,
        createdUtc: new Date(),
        items: [
            {
                name: "Image.jpg",
                isDirectory: false,
                hasDirectories: false,
                path: "folder/Image.jpg",
                extension: ".jpg",
                size: 20,
                createdUtc: new Date(),
            },
            {
                name: "Image2.jpg",
                isDirectory: false,
                hasDirectories: false,
                path: "folder/Image2.jpg",
                extension: ".jpg",
                size: 20,
                createdUtc: new Date(),
            }
        ]}
    ];

    $("#fileManager").kendoFileManager({
        dataSource: myData
    });

    var fileManager = $("#fileManager").data("kendoFileManager");

    fileManager.navigate("folder");

    var path = fileManager.path();

/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(path);
</script>
In this article