FilesUtil
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Private Members | ||
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
getFileAssetLocation(fileDb: *): * |
|
public |
getFileAssetUrlPath(fileDb: *): * |
|
public |
getFileDb(filePath: *, user: *, project: *, cachebuster: string): {"_id": *, "name": *, "type": *, "suffix": *, "fileName": *, "projectId": *, "userId": *, "updated": *, "created": *, "cachebuster": *, "isLibraryFile": *, "__v": *, "size": *, "path": *} |
|
public |
getFileIconName(fileDb: *): * |
|
public |
getLibraryFiles(): * |
|
public |
getPatchFiles(): * |
|
public |
isAssetLibraryLocation(filePath: *): * |
|
public |
readAssetDir(lvl: *, filePath: *, origPath: *, urlPrefix: string): * |
|
public |
registerAssetChangeListeners(project: *, removeOthers: boolean) |
|
public |
registerOpChangeListeners(opNames: *, removeOthers: boolean) |
|
public |
async unregisterChangeListeners() |
|
public |
unregisterOpChangeListeners(opNames: *) |
Public Constructors
public constructor() source
Public Methods
public getFileAssetLocation(fileDb: *): * source
Params:
Name | Type | Attribute | Description |
fileDb | * |
Return:
* |
public getFileAssetUrlPath(fileDb: *): * source
Params:
Name | Type | Attribute | Description |
fileDb | * |
Return:
* |
public getFileDb(filePath: *, user: *, project: *, cachebuster: string): {"_id": *, "name": *, "type": *, "suffix": *, "fileName": *, "projectId": *, "userId": *, "updated": *, "created": *, "cachebuster": *, "isLibraryFile": *, "__v": *, "size": *, "path": *} source
Params:
Name | Type | Attribute | Description |
filePath | * | ||
user | * | ||
project | * | ||
cachebuster | string |
|
Return:
{"_id": *, "name": *, "type": *, "suffix": *, "fileName": *, "projectId": *, "userId": *, "updated": *, "created": *, "cachebuster": *, "isLibraryFile": *, "__v": *, "size": *, "path": *} |
public isAssetLibraryLocation(filePath: *): * source
Params:
Name | Type | Attribute | Description |
filePath | * |
Return:
* |
public readAssetDir(lvl: *, filePath: *, origPath: *, urlPrefix: string): * source
Params:
Name | Type | Attribute | Description |
lvl | * | ||
filePath | * | ||
origPath | * | ||
urlPrefix | string |
|
Return:
* |
public registerAssetChangeListeners(project: *, removeOthers: boolean) source
Params:
Name | Type | Attribute | Description |
project | * | ||
removeOthers | boolean |
|
public registerOpChangeListeners(opNames: *, removeOthers: boolean) source
Params:
Name | Type | Attribute | Description |
opNames | * | ||
removeOthers | boolean |
|
public async unregisterChangeListeners() source
public unregisterOpChangeListeners(opNames: *) source
Params:
Name | Type | Attribute | Description |
opNames | * |