Module QioFS

Index

Interfaces

Functions

Functions

absolute(path: string): string

Parameters

  • path: string

Returns

string

append(path: string, content: Buffer, options?: any): Promise

Parameters

  • path: string
  • content: Buffer
  • options?: any optional

Returns

Promise

append(path: string, content: string, options?: any): Promise

Parameters

  • path: string
  • content: string
  • options?: any optional

Returns

Promise

base(path: string, extension: string): string

Parameters

  • path: string
  • extension: string

Returns

string

canonical(path: string): Promise

Parameters

  • path: string

Returns

Promise

chmod(path: string, mode?: string): Promise

Parameters

  • path: string
  • mode?: string optional

Returns

Promise

chmod(path: string, mode?: number): Promise

Parameters

  • path: string
  • mode?: number optional

Returns

Promise

chown(path: string, uid: number, gid: number): Promise

Parameters

  • path: string
  • uid: number
  • gid: number

Returns

Promise

contains(parent: string, child: string): boolean

Parameters

  • parent: string
  • child: string

Returns

boolean

copy(source: string, target: string): Promise

Parameters

  • source: string
  • target: string

Returns

Promise

copyTree(source: string, target: string): Promise

Parameters

  • source: string
  • target: string

Returns

Promise

directory(path: string): string

Parameters

  • path: string

Returns

string

exists(path: string): Promise

Parameters

  • path: string

Returns

Promise

extension(path: string): string

Parameters

  • path: string

Returns

string

isAbsolute(path: string): boolean

Parameters

  • path: string

Returns

boolean

isDirectory(path: string): Promise

Parameters

  • path: string

Returns

Promise

isFile(path: string): Promise

Parameters

  • path: string

Returns

Promise

isRelative(path: string): boolean

Parameters

  • path: string

Returns

boolean

isRoot(path: string): boolean

Parameters

  • path: string

Returns

boolean

isSymbolicLink(path: string): Promise

Parameters

  • path: string

Returns

Promise

join(paths?: Array<string>): string

Parameters

  • paths?: Array<string> optional

Returns

string

join(paths: Array<string>): string

Parameters

  • paths: Array<string>

Returns

string

lastAccessed(path: string): Promise

Parameters

  • path: string

Returns

Promise

lastModified(path: string): Promise

Parameters

  • path: string

Returns

Promise

link(source: string, target: any): Promise

Parameters

  • source: string
  • target: any

Returns

Promise

list(path: string): Promise

Parameters

  • path: string

Returns

Promise

listDirectoryTree(path: string): Promise

Parameters

  • path: string

Returns

Promise

listTree(path: string, guard?: (path: string, stat: any) => boolean): Promise

Parameters

  • path: string
  • guard?: (path: string, stat: any) => boolean optional

Returns

Promise

makeDirectory(path: string, mode?: string): Promise

Parameters

  • path: string
  • mode?: string optional

Returns

Promise

makeDirectory(path: string, mode?: number): Promise

Parameters

  • path: string
  • mode?: number optional

Returns

Promise

makeTree(path: string, mode?: string): Promise

Parameters

  • path: string
  • mode?: string optional

Returns

Promise

makeTree(path: string, mode?: number): Promise

Parameters

  • path: string
  • mode?: number optional

Returns

Promise

move(source: string, target: string): Promise

Parameters

  • source: string
  • target: string

Returns

Promise

normal(path?: Array<string>): string

Parameters

  • path?: Array<string> optional

Returns

string

normal(paths: Array<string>): string

Parameters

  • paths: Array<string>

Returns

string

open(path: string, options?: any): Promise

Parameters

  • path: string
  • options?: any optional

Returns

Promise

read(path: string, options?: any): Promise

Parameters

  • path: string
  • options?: any optional

Returns

Promise

readLink(path: string): Promise

Parameters

  • path: string

Returns

Promise

relative(source: string, target: string): Promise

Parameters

  • source: string
  • target: string

Returns

Promise

relativeFromDirectory(source: string, target: string): string

Parameters

  • source: string
  • target: string

Returns

string

relativeFromFile(source: string, target: string): string

Parameters

  • source: string
  • target: string

Returns

string

remove(path: string): Promise

Parameters

  • path: string

Returns

Promise

removeTree(path: string): Promise

Parameters

  • path: string

Returns

Promise

rename(source: string, target: string): Promise

Parameters

  • source: string
  • target: string

Returns

Promise

reroot(path: string): QioFS

Parameters

  • path: string

Returns

QioFS

resolve(path?: Array<string>): string

Parameters

  • path?: Array<string> optional

Returns

string

resolve(paths: Array<string>): string

Parameters

  • paths: Array<string>

Returns

string

root(path: string): string

Parameters

  • path: string

Returns

string

split(path: string): Array<string>

Parameters

  • path: string

Returns

Array<string>

stat(path: string): Promise

Parameters

  • path: string

Returns

Promise

statFd(fd: number): Promise

Parameters

  • fd: number

Returns

Promise

statLink(path: string): Promise

Parameters

  • path: string

Returns

Promise

symbolicCopy(source: string, target: string, type: string): Promise

Parameters

  • source: string
  • target: string
  • type: string

Returns

Promise

symbolicLink(target: string, link: string, type: string): Promise

Parameters

  • target: string
  • link: string
  • type: string

Returns

Promise

toObject(path: string): { [path: string]: Buffer; }

Parameters

  • path: string

Returns

{ [path: string]: Buffer; }

write(path: string, content: Buffer, options?: any): Promise

Parameters

  • path: string
  • content: Buffer
  • options?: any optional

Returns

Promise

write(path: string, content: string, options?: any): Promise

Parameters

  • path: string
  • content: string
  • options?: any optional

Returns

Promise