library(资源库)
取得当前 Eagle 正在使用的资源库信息。
方法
info()
取得当前资源库详细信息,包含文件夹、智能文件夹、标签群组等
返回
Promise<data: Object>dataObject - 资源库各项属性
console.log(await eagle.library.info());屬性
library 模块包含以下属性:
name string
name string返回当前资源库名称
console.log(eagle.library.name)
// testpath string
path string返回当前资源库所在路径
console.log(eagle.library.path);
// C:\Users\User\Pictures\Design.librarymodificationTime Integer
modificationTime Integer返回最后修改时间 (timestamp)
console.log(eagle.library.modificationTime);
// 1681281134495最后更新于