@nextcloud/dialogs
    Preparing search index...

    Interface FileSystemHandle

    The FileSystemHandle interface of the File System API is an object which represents a file or directory entry. Multiple handles can represent the same entry. For the most part you do not work with FileSystemHandle directly but rather its child interfaces FileSystemFileHandle and FileSystemDirectoryHandle. Available only in secure contexts.

    MDN Reference

    interface FileSystemHandle {
        kind: FileSystemHandleKind;
        name: string;
        isSameEntry(other: FileSystemHandle): Promise<boolean>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Methods

    Properties

    The kind read-only property of the FileSystemHandle interface returns the type of entry. This is 'file' if the associated entry is a file or 'directory'. It is used to distinguish files from directories when iterating over the contents of a directory.

    MDN Reference

    name: string

    The name read-only property of the FileSystemHandle interface returns the name of the entry represented by handle.

    MDN Reference

    Methods

    • The isSameEntry() method of the FileSystemHandle interface compares two handles to see if the associated entries (either a file or directory) match.

      MDN Reference

      Parameters

      Returns Promise<boolean>