Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想读取驱动器上文件夹中的所有文件和文件夹。FileList 具有称为 getItems() 的方法,该方法返回文件列表,但它具有获取其 id 的方法但没有获取其名称的方法?
用于getTitle返回文件的标题(文件名)。请记住,列表会返回已丢弃的物品。如果您想阻止这种情况,请传递查询:
getTitle
q='trashed = false'