UNPKG

ithit.webdav.server

Version:

With IT Hit WebDAV Server Engine for Node.js you can create your own WebDAV server, add WebDAV support to your existing Node.js project or DAV-enable your CMS/DMS/CRM.

20 lines (19 loc) 1.02 kB
/** * @copyright Copyright (c) 2017 IT Hit. All rights reserved. */ import { IHierarchyItem } from "./IHierarchyItem"; import { PropertyName } from "./PropertyName"; /** * Base interface for folders. * @remarks Base interface for all kinds of folders ({@link IFolder} , IPrincipalFolder etc.). * In addition to methods and properties provided by {@link IHierarchyItem} * interface this interface also provides {@link IItemCollection.getChildren} method to list all children of this folder. */ export interface IItemCollection extends IHierarchyItem { /** * Gets direct children of this folder. * @param propNames List of properties requested by the client. * @remarks In this method implementation, you must create and return the list of files and folders contained in this folder. Often in this method you will also verify user permissions and return only items that the user has rights to see. */ getChildren(propNames: PropertyName[]): Promise<IHierarchyItem[]>; }