Preparing search index...
The search index is not available path-scurry
Class PathScurryBaseAbstract
Constructors
constructor
new Path Scurry Base( cwd?: string | URL , pathImpl: PlatformPath , sep: string | RegExp , __namedParameters?: PathScurryOpts ) : PathScurryBase
Internal
Parameters
cwd: string | URL = ...
pathImpl: PlatformPath
sep: string | RegExp
Properties
Private
#resolve Posix Cache
root Path
root Path: string
Abstract
sep
sep: string | RegExp
Methods
[async Iterator]
[async Iterator]( ) : AsyncGenerator < PathBase , void , void >
Returns AsyncGenerator < PathBase , void , void >
[iterator]
[iterator]( ) : Generator < PathBase , void , void >
Returns Generator < PathBase , void , void >
basename
basename( entry?: string | PathBase ) : string
Returns string
chdir
chdir( path?: string | Path ) : void
Parameters
path: string | Path = ...
Returns void
depth
depth( path?: string | Path ) : number
Parameters
path: string | Path = ...
Returns number
dirname
dirname( entry?: string | PathBase ) : string
Returns string
Abstract
is Absolute
is Absolute( p: string ) : boolean
Returns boolean
iterate
iterate( ) : AsyncGenerator < PathBase , void , void >
Returns AsyncGenerator < PathBase , void , void >
iterate( opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset ) : AsyncGenerator < PathBase , void , void >
Returns AsyncGenerator < PathBase , void , void >
iterate( opts: WalkOptionsWithFileTypesFalse ) : AsyncGenerator < string , void , void >
Returns AsyncGenerator < string , void , void >
iterate( opts: WalkOptions ) : AsyncGenerator < string | PathBase , void , void >
Returns AsyncGenerator < string | PathBase , void , void >
iterate( entry: string | PathBase ) : AsyncGenerator < PathBase , void , void >
Returns AsyncGenerator < PathBase , void , void >
iterate( entry: string | PathBase , opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset ) : AsyncGenerator < PathBase , void , void >
Returns AsyncGenerator < PathBase , void , void >
iterate( entry: string | PathBase , opts: WalkOptionsWithFileTypesFalse ) : AsyncGenerator < string , void , void >
Returns AsyncGenerator < string , void , void >
iterate( entry: string | PathBase , opts: WalkOptions ) : AsyncGenerator < string | PathBase , void , void >
Returns AsyncGenerator < string | PathBase , void , void >
iterate Sync
iterate Sync( ) : Generator < PathBase , void , void >
Returns Generator < PathBase , void , void >
iterate Sync( opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset ) : Generator < PathBase , void , void >
Returns Generator < PathBase , void , void >
iterate Sync( opts: WalkOptionsWithFileTypesFalse ) : Generator < string , void , void >
Returns Generator < string , void , void >
iterate Sync( opts: WalkOptions ) : Generator < string | PathBase , void , void >
Returns Generator < string | PathBase , void , void >
iterate Sync( entry: string | PathBase ) : Generator < PathBase , void , void >
Returns Generator < PathBase , void , void >
iterate Sync( entry: string | PathBase , opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset ) : Generator < PathBase , void , void >
Returns Generator < PathBase , void , void >
iterate Sync( entry: string | PathBase , opts: WalkOptionsWithFileTypesFalse ) : Generator < string , void , void >
Returns Generator < string , void , void >
iterate Sync( entry: string | PathBase , opts: WalkOptions ) : Generator < string | PathBase , void , void >
Returns Generator < string | PathBase , void , void >
Abstract
parse Root Path
parse Root Path( dir: string ) : string
Internal
Returns string
readdir
readdir( ) : Promise < PathBase [] >
Returns Promise < PathBase [] >
readdir( opts: { withFileTypes: true ; } ) : Promise < PathBase [] >
Parameters
opts: { withFileTypes: true ; }
Returns Promise < PathBase [] >
readdir( opts: { withFileTypes: false ; } ) : Promise < string [] >
Parameters
opts: { withFileTypes: false ; }
Returns Promise < string [] >
readdir( opts: { withFileTypes: boolean ; } ) : Promise < string [] | PathBase [] >
Parameters
opts: { withFileTypes: boolean ; }
Returns Promise < string [] | PathBase [] >
readdir( entry: string | PathBase ) : Promise < PathBase [] >
Returns Promise < PathBase [] >
readdir( entry: string | PathBase , opts: { withFileTypes: true ; } ) : Promise < PathBase [] >
Parameters
opts: { withFileTypes: true ; }
Returns Promise < PathBase [] >
readdir( entry: string | PathBase , opts: { withFileTypes: false ; } ) : Promise < string [] >
Parameters
opts: { withFileTypes: false ; }
Returns Promise < string [] >
readdir( entry: string | PathBase , opts: { withFileTypes: boolean ; } ) : Promise < string [] | PathBase [] >
Parameters
opts: { withFileTypes: boolean ; }
Returns Promise < string [] | PathBase [] >
readdir Sync
readdir Sync( ) : PathBase []
readdir Sync( opts: { withFileTypes: true ; } ) : PathBase []
Parameters
opts: { withFileTypes: true ; }
readdir Sync( opts: { withFileTypes: false ; } ) : string []
Parameters
opts: { withFileTypes: false ; }
Returns string []
readdir Sync( opts: { withFileTypes: boolean ; } ) : string [] | PathBase []
Parameters
opts: { withFileTypes: boolean ; }
Returns string [] | PathBase []
readdir Sync( entry: string | PathBase ) : PathBase []
readdir Sync( entry: string | PathBase , opts: { withFileTypes: true ; } ) : PathBase []
Parameters
opts: { withFileTypes: true ; }
readdir Sync( entry: string | PathBase , opts: { withFileTypes: false ; } ) : string []
Parameters
opts: { withFileTypes: false ; }
Returns string []
readdir Sync( entry: string | PathBase , opts: { withFileTypes: boolean ; } ) : string [] | PathBase []
Parameters
opts: { withFileTypes: boolean ; }
Returns string [] | PathBase []
readlink
readlink( ) : Promise < undefined | string >
Returns Promise < undefined | string >
readlink( opt: { withFileTypes: false ; } ) : Promise < undefined | string >
Parameters
opt: { withFileTypes: false ; }
Returns Promise < undefined | string >
readlink( opt: { withFileTypes: true ; } ) : Promise < undefined | PathBase >
Parameters
opt: { withFileTypes: true ; }
Returns Promise < undefined | PathBase >
readlink( opt: { withFileTypes: boolean ; } ) : Promise < undefined | string | PathBase >
Parameters
opt: { withFileTypes: boolean ; }
Returns Promise < undefined | string | PathBase >
readlink( entry: string | PathBase , opt?: { withFileTypes: false ; } ) : Promise < undefined | string >
Parameters
Optional
opt: { withFileTypes: false ; }
Returns Promise < undefined | string >
readlink( entry: string | PathBase , opt: { withFileTypes: true ; } ) : Promise < undefined | PathBase >
Parameters
opt: { withFileTypes: true ; }
Returns Promise < undefined | PathBase >
readlink( entry: string | PathBase , opt: { withFileTypes: boolean ; } ) : Promise < undefined | string | PathBase >
Parameters
opt: { withFileTypes: boolean ; }
Returns Promise < undefined | string | PathBase >
readlink Sync
readlink Sync( ) : undefined | string
Returns undefined | string
readlink Sync( opt: { withFileTypes: false ; } ) : undefined | string
Parameters
opt: { withFileTypes: false ; }
Returns undefined | string
readlink Sync( opt: { withFileTypes: true ; } ) : undefined | PathBase
Parameters
opt: { withFileTypes: true ; }
Returns undefined | PathBase
readlink Sync( opt: { withFileTypes: boolean ; } ) : undefined | string | PathBase
Parameters
opt: { withFileTypes: boolean ; }
Returns undefined | string | PathBase
readlink Sync( entry: string | PathBase , opt?: { withFileTypes: false ; } ) : undefined | string
Parameters
Optional
opt: { withFileTypes: false ; }
Returns undefined | string
readlink Sync( entry: string | PathBase , opt: { withFileTypes: true ; } ) : undefined | PathBase
Parameters
opt: { withFileTypes: true ; }
Returns undefined | PathBase
readlink Sync( entry: string | PathBase , opt: { withFileTypes: boolean ; } ) : undefined | string | PathBase
Parameters
opt: { withFileTypes: boolean ; }
Returns undefined | string | PathBase
realpath
realpath( ) : Promise < undefined | string >
Returns Promise < undefined | string >
realpath( opt: { withFileTypes: false ; } ) : Promise < undefined | string >
Parameters
opt: { withFileTypes: false ; }
Returns Promise < undefined | string >
realpath( opt: { withFileTypes: true ; } ) : Promise < undefined | PathBase >
Parameters
opt: { withFileTypes: true ; }
Returns Promise < undefined | PathBase >
realpath( opt: { withFileTypes: boolean ; } ) : Promise < undefined | string | PathBase >
Parameters
opt: { withFileTypes: boolean ; }
Returns Promise < undefined | string | PathBase >
realpath( entry: string | PathBase , opt?: { withFileTypes: false ; } ) : Promise < undefined | string >
Parameters
Optional
opt: { withFileTypes: false ; }
Returns Promise < undefined | string >
realpath( entry: string | PathBase , opt: { withFileTypes: true ; } ) : Promise < undefined | PathBase >
Parameters
opt: { withFileTypes: true ; }
Returns Promise < undefined | PathBase >
realpath( entry: string | PathBase , opt: { withFileTypes: boolean ; } ) : Promise < undefined | string | PathBase >
Parameters
opt: { withFileTypes: boolean ; }
Returns Promise < undefined | string | PathBase >
realpath Sync
realpath Sync( ) : undefined | string
Returns undefined | string
realpath Sync( opt: { withFileTypes: false ; } ) : undefined | string
Parameters
opt: { withFileTypes: false ; }
Returns undefined | string
realpath Sync( opt: { withFileTypes: true ; } ) : undefined | PathBase
Parameters
opt: { withFileTypes: true ; }
Returns undefined | PathBase
realpath Sync( opt: { withFileTypes: boolean ; } ) : undefined | string | PathBase
Parameters
opt: { withFileTypes: boolean ; }
Returns undefined | string | PathBase
realpath Sync( entry: string | PathBase , opt?: { withFileTypes: false ; } ) : undefined | string
Parameters
Optional
opt: { withFileTypes: false ; }
Returns undefined | string
realpath Sync( entry: string | PathBase , opt: { withFileTypes: true ; } ) : undefined | PathBase
Parameters
opt: { withFileTypes: true ; }
Returns undefined | PathBase
realpath Sync( entry: string | PathBase , opt: { withFileTypes: boolean ; } ) : undefined | string | PathBase
Parameters
opt: { withFileTypes: boolean ; }
Returns undefined | string | PathBase
relative
relative( entry?: string | PathBase ) : string
Returns string
relative Posix
relative Posix( entry?: string | PathBase ) : string
Returns string
resolve
resolve( ... paths: string [] ) : string
Returns string
resolve Posix
resolve Posix( ... paths: string [] ) : string
Returns string
stream
stream( ) : Minipass < PathBase , PathBase , Events < PathBase > >
stream( opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset ) : Minipass < PathBase , PathBase , Events < PathBase > >
stream( opts: WalkOptionsWithFileTypesFalse ) : Minipass < string , ContiguousData , Events < string > >
Returns Minipass < string , ContiguousData , Events < string > >
stream( opts: WalkOptions ) : Minipass < string | PathBase , ContiguousData | PathBase , Events < string | PathBase > >
Returns Minipass < string | PathBase , ContiguousData | PathBase , Events < string | PathBase > >
stream( entry: string | PathBase ) : Minipass < PathBase , PathBase , Events < PathBase > >
stream( entry: string | PathBase , opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset ) : Minipass < PathBase , PathBase , Events < PathBase > >
stream( entry: string | PathBase , opts: WalkOptionsWithFileTypesFalse ) : Minipass < string , ContiguousData , Events < string > >
Returns Minipass < string , ContiguousData , Events < string > >
stream( entry: string | PathBase , opts: WalkOptions ) : Minipass < string , ContiguousData , Events < string > > | Minipass < PathBase , PathBase , Events < PathBase > >
Returns Minipass < string , ContiguousData , Events < string > > | Minipass < PathBase , PathBase , Events < PathBase > >
stream Sync
stream Sync( ) : Minipass < PathBase , PathBase , Events < PathBase > >
stream Sync( opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset ) : Minipass < PathBase , PathBase , Events < PathBase > >
stream Sync( opts: WalkOptionsWithFileTypesFalse ) : Minipass < string , ContiguousData , Events < string > >
Returns Minipass < string , ContiguousData , Events < string > >
stream Sync( opts: WalkOptions ) : Minipass < string | PathBase , ContiguousData | PathBase , Events < string | PathBase > >
Returns Minipass < string | PathBase , ContiguousData | PathBase , Events < string | PathBase > >
stream Sync( entry: string | PathBase ) : Minipass < PathBase , PathBase , Events < PathBase > >
stream Sync( entry: string | PathBase , opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset ) : Minipass < PathBase , PathBase , Events < PathBase > >
stream Sync( entry: string | PathBase , opts: WalkOptionsWithFileTypesFalse ) : Minipass < string , ContiguousData , Events < string > >
Returns Minipass < string , ContiguousData , Events < string > >
stream Sync( entry: string | PathBase , opts: WalkOptions ) : Minipass < string , ContiguousData , Events < string > > | Minipass < PathBase , PathBase , Events < PathBase > >
Returns Minipass < string , ContiguousData , Events < string > > | Minipass < PathBase , PathBase , Events < PathBase > >
The base class for all PathScurry classes, providing the interface for path resolution and filesystem operations.
Typically, you should not instantiate this class directly, but rather one of the platform-specific classes, or the exported PathScurry which defaults to the current platform.