CDDirectory Object



 
The CDDirectory object controls a directory.


Members Table

    The following table lists the members provided by the CDDirectory object.

    Members
    Collections Description
    Directories List of subdirectories.
    Methods Description
    Clear Clears all files and subdirectories.
    CreateDirectory Creates a new subdirectory.
    Delete Deletes a subdirectory.
    GetDirectory Returns a subdirectory by name.
    Import Imports a file or directory.
    Rename Renames a subdirectory.

Remarks
    This object is returned by the CreateDirectory , GetDirectory or Item method. Use the CDDirectory object to retrieve information about a directory or to modify it.

    Note that the path of a file using SiteKiosk objects must be allowed in the
    SiteKiosk configuration (Security -> Access -> URL's With Script Permission)
    if it is not a browser skin file.
Examples
    The following example shows the number of subdirectories of the first subdirectory of the root directory.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    firstSubDir = SiteKiosk.CDRecording.RootDirectory.Directories.Item(1);
    alert(firstSubDir.Directories.Count);
    </SCRIPT>
    

Applies to
    SiteKiosk v6.0 (and later versions).

Back to top