UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

46 lines (34 loc) 1.43 kB
/** * DevExtreme (file_management/file_system_item.d.ts) * Version: 20.1.7 * Build date: Tue Aug 25 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ /** An object that provides information about a file system item (file or folder) in the FileManager widget. */ export default class FileSystemItem { constructor(path: string, isDirectory: boolean, pathKeys?: Array<string>); /** The file system item's path. */ path: string; /** The file system item's path specified in keys. */ pathKeys: Array<string>; /** The file system item's key. */ key: string; /** The file system item's name. */ name: string; /** A timestamp that indicates when the file system item was last modified. */ dateModified: Date; /** The file system item's size (in bytes). */ size: number; /** Specifies whether the file system item is a directory. */ isDirectory: boolean; /** Specifies whether a directory has subdirectories. */ hasSubDirectories: boolean; /** An icon (URL) to be used as the file system item's thumbnail. */ thumbnail: string; /** The file system data object that stores information about the file system item (name, size, modification date, etc.). */ dataItem: any; /** Gets a file's extension. */ getFileExtension(): string; }