JS API Reference

Interface: IFileServer

activity/activity.module.IFileServer

An abstract interface describing a File Server that can be used to expose files from the Requestor to the Golem Network

Implemented by

Table of contents

Methods

Methods

publishFile

publishFile(sourcePath): Promise<FileServerEntry>

Exposes a file that can be accessed via Golem Network and GFTP

Parameters

NameType
sourcePathstring

Returns

Promise<FileServerEntry>

Defined in

src/activity/activity.module.ts:90


isFilePublished

isFilePublished(sourcePath): boolean

Tells if the file was already published on the server

Parameters

NameType
sourcePathstring

Returns

boolean

Defined in

src/activity/activity.module.ts:95


getPublishInfo

getPublishInfo(sourcePath): undefined | FileServerEntry

Returns publishing information for a file that has been already served

Parameters

NameType
sourcePathstring

Returns

undefined | FileServerEntry

Defined in

src/activity/activity.module.ts:100


isServing

isServing(): boolean

Tells if the server is currently serving any files

Returns

boolean

Defined in

src/activity/activity.module.ts:105