Preparing search index...
The search index is not available browser-fsa
use Collections( ) : { addCollection: ( ( name: string , files?: fsaCollectionFile [] , description?: string , creator?: string , tags?: string [] ) => Promise < boolean > ) ; addFileToCollection: ( ( file: fsaFile , collection?: fsaCollection ) => Promise < void > ) ; cloneCollection: ( ( collection: fsaCollection , name?: string ) => Promise < false | fsaCollection > ) ; collections: fsaCollection [] ; currentCollectionItems: fsaFile [] ; fileIsInCurrentCollection: ( ( id: string ) => boolean ) ; removeAllFilesFromCollection: ( ( collectionId: string ) => Promise < void > ) ; removeCollection: ( ( collection: fsaCollection ) => Promise < void > ) ; removeFileFromCollection: ( ( file: fsaFile , collection?: fsaCollection ) => Promise < void > ) ; saveCollectionToFileSystem: ( ( collectionId: string ) => Promise < undefined | false > ) ; updateCollection: ( ( collection: fsaCollection ) => Promise < boolean > ) }
Returns { addCollection: ( ( name: string , files?: fsaCollectionFile [] , description?: string , creator?: string , tags?: string [] ) => Promise < boolean > ) ; addFileToCollection: ( ( file: fsaFile , collection?: fsaCollection ) => Promise < void > ) ; cloneCollection: ( ( collection: fsaCollection , name?: string ) => Promise < false | fsaCollection > ) ; collections: fsaCollection [] ; currentCollectionItems: fsaFile [] ; fileIsInCurrentCollection: ( ( id: string ) => boolean ) ; removeAllFilesFromCollection: ( ( collectionId: string ) => Promise < void > ) ; removeCollection: ( ( collection: fsaCollection ) => Promise < void > ) ; removeFileFromCollection: ( ( file: fsaFile , collection?: fsaCollection ) => Promise < void > ) ; saveCollectionToFileSystem: ( ( collectionId: string ) => Promise < undefined | false > ) ; updateCollection: ( ( collection: fsaCollection ) => Promise < boolean > ) }
add Collection: ( ( name: string , files?: fsaCollectionFile [] , description?: string , creator?: string , tags?: string [] ) => Promise < boolean > )
( name: string , files?: fsaCollectionFile [] , description?: string , creator?: string , tags?: string [] ) : Promise < boolean >
Parameters
name: string
description: string = ''
creator: string = ''
tags: string [] = []
Returns Promise < boolean >
add File To Collection: ( ( file: fsaFile , collection?: fsaCollection ) => Promise < void > )
clone Collection: ( ( collection: fsaCollection , name?: string ) => Promise < false | fsaCollection > )
current Collection Items: fsaFile []
file Is In Current Collection: ( ( id: string ) => boolean )
( id: string ) : boolean
Returns boolean
remove All Files From Collection: ( ( collectionId: string ) => Promise < void > )
( collectionId: string ) : Promise < void >
Returns Promise < void >
remove Collection: ( ( collection: fsaCollection ) => Promise < void > )
remove File From Collection: ( ( file: fsaFile , collection?: fsaCollection ) => Promise < void > )
save Collection To File System: ( ( collectionId: string ) => Promise < undefined | false > )
( collectionId: string ) : Promise < undefined | false >
Returns Promise < undefined | false >
update Collection: ( ( collection: fsaCollection ) => Promise < boolean > )
( collection: fsaCollection ) : Promise < boolean >
Returns Promise < boolean >
Add a fsaFile to the current selected collection, if a collection is passed in then that collection receives the file