UNPKG

@fgv/ts-web-extras

Version:

Browser-compatible utilities and FileTree implementations

103 lines (47 loc) 1.87 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@fgv/ts-web-extras](./ts-web-extras.md) &gt; [FileTreeHelpers](./ts-web-extras.filetreehelpers.md) ## FileTreeHelpers namespace ## Functions <table><thead><tr><th> Function </th><th> Description </th></tr></thead> <tbody><tr><td> [extractFileListMetadata(fileList)](./ts-web-extras.filetreehelpers.extractfilelistmetadata.md) </td><td> Helper function to extract metadata from a `FileList`<!-- -->. </td></tr> <tr><td> [extractFileMetadata(file)](./ts-web-extras.filetreehelpers.extractfilemetadata.md) </td><td> Helper function to extract metadata from a `File`<!-- -->. </td></tr> <tr><td> [fromDirectoryUpload(fileList, params)](./ts-web-extras.filetreehelpers.fromdirectoryupload.md) </td><td> Helper function to create a new FileTree instance from a directory upload with webkitRelativePath support. </td></tr> <tr><td> [fromFileList(fileList, params)](./ts-web-extras.filetreehelpers.fromfilelist.md) </td><td> Helper function to create a new FileTree instance from a browser FileList (e.g., from input\[type="file"\]). </td></tr> <tr><td> [getOriginalFile(fileList, path)](./ts-web-extras.filetreehelpers.getoriginalfile.md) </td><td> Helper function to get the original File object from a FileList by path. </td></tr> </tbody></table> ## Variables <table><thead><tr><th> Variable </th><th> Description </th></tr></thead> <tbody><tr><td> [defaultFileApiTreeInitParams](./ts-web-extras.filetreehelpers.defaultfileapitreeinitparams.md) </td><td> Default initialization parameters for a `FileTree` using [FileApiTreeAccessors](./ts-web-extras.fileapitreeaccessors.md)<!-- -->. </td></tr> </tbody></table>