@filesrocket/local
Version:
Filesrocket service that manages your files locally
25 lines (24 loc) • 832 B
TypeScript
import { OutputEntity } from '@filesrocket/core';
import { Options } from '../declarations';
export declare class BaseService {
protected readonly options: Options;
constructor(options: Options);
/**
* Method responsible for constructing the entities (Files)
* @param root Path
*/
protected builder(root: string): Promise<OutputEntity>;
/**
* Method responsible for parsing the HTTP URL to path
*
* For example: `http://domain.com/uploads/images/filesrocket.png` -> `uploads/images/filesrocket.png`
*
* @param root Path or URL
*/
protected resolvePath(root: string): string;
/**
* Responsible method if entity exists (Files or Directories)
* @param root Path
*/
protected hasExist(root: string): Promise<boolean>;
}