@nextcloud/dialogs
    Preparing search index...

    Interface FileSystemFileHandle

    The FileSystemFileHandle interface of the File System API represents a handle to a file system entry. The interface is accessed through the window.showOpenFilePicker() method. Available only in secure contexts.

    MDN Reference

    interface FileSystemFileHandle {
        kind: "file";
        name: string;
        createWritable(
            options?: FileSystemCreateWritableOptions,
        ): Promise<FileSystemWritableFileStream>;
        getFile(): Promise<File>;
        isSameEntry(other: FileSystemHandle): Promise<boolean>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    kind: "file"

    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 getFile() method of the FileSystemFileHandle interface returns a Promise which resolves to a File object representing the state on disk of the entry represented by the handle.

      MDN Reference

      Returns Promise<File>

    • 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>