UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

70 lines (58 loc) 1.61 kB
/** * DevExtreme (file_management/file_system_item.d.ts) * Version: 21.1.4 * Build date: Mon Jun 21 2021 * * Copyright (c) 2012 - 2021 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 UI component. */ export default class FileSystemItem { constructor(path: string, isDirectory: boolean, pathKeys?: Array<string>); /** * The file system item&apos;s path. */ path: string; /** * The file system item&apos;s path specified in keys. */ pathKeys: Array<string>; /** * The file system item&apos;s key. */ key: string; /** * The file system item&apos;s name. */ name: string; /** * A timestamp that indicates when the file system item was last modified. */ dateModified: Date; /** * The file system item&apos;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&apos;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&apos;s extension. */ getFileExtension(): string; }