folder
The eagle.folder API allows you to easily create new folders or access existing ones in the current application.
// Get the currently selected folder in the Eagle application
let folder = (await eagle.folder.getSelected())[0];
// Modify properties
folder.name = 'New Folder Name';
folder.description = 'New description...';
// Save changes
await folder.save();Methods
create(options)
createSubfolder(parentId, options)
get(options)
getAll()
getById(folderId)
getByIds(folderIds)
getSelected()
getRecents()
open(folderId)
Class: Folder
Instance Methods
save()
open()
Instance Properties
id string
name string
description string
icon string
iconColor string
createdAt Integer
parent string
children Folder[]
Static Properties
IconColor Object
Last updated