MCPcopy Create free account
hub / github.com/adobe/react-spectrum / createDirectoryItem

Function createDirectoryItem

packages/react-aria/src/dnd/utils.ts:326–332  ·  view source on GitHub ↗
(entry: any)

Source from the content-addressed store, hash-verified

324}
325
326function createDirectoryItem(entry: any): DirectoryDropItem {
327 return {
328 kind: 'directory',
329 name: entry.name,
330 getEntries: () => getEntries(entry)
331 };
332}
333
334async function* getEntries(
335 item: FileSystemDirectoryEntry

Callers 2

readFromDataTransferFunction · 0.85
getEntriesFunction · 0.85

Calls 1

getEntriesFunction · 0.85

Tested by

no test coverage detected