clipboard

stores the object with current clipboard data

object clipboard;

Example

const buffer = $$("fm").getState().clipboard;
// or
const buffer = $$("fm").config.clipboard;

Details

The object stores the current clipboard data being pasted. It contains an array of the file ID(s) and the mode for pasting ("cut" or "copy"). The object has the following structure:

 {
    files: ["/meow.mp3"],
    mode: "copy"
 }
See also
Back to top