clipboard

stores the object with current clipboard data

object clipboard;

Example

const buffer = $$("dm").getState().clipboard; 
// or
const buffer = $$("dm").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", "copy" or "trashed". The third is used to restore files into a directory). The object has the following structure:

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