@damian-buho/repolinter - v2.0.13
Preparing search index...
index
FileSystem
Class FileSystem
Index
Constructors
constructor
Properties
filter
Paths
target
Directory
Methods
find
All
find
All
Files
find
First
find
First
File
get
File
Contents
get
File
Lines
glob
is
Binary
File
normalize
Path
relative
File
Exists
remove
File
resolve
Contained
set
File
Contents
should
Include
file
Exists
Constructors
constructor
new
FileSystem
(
targetDirectory
?:
string
,
filterPaths
?:
string
[]
)
:
FileSystem
Parameters
targetDirectory
:
string
= '.'
filterPaths
:
string
[]
= []
Returns
FileSystem
Properties
filter
Paths
filterPaths
:
string
[]
target
Directory
targetDirectory
:
string
Methods
find
All
findAll
(
globs
:
string
|
string
[]
,
isNocase
?:
boolean
)
:
Promise
<
string
[]
>
Parameters
globs
:
string
|
string
[]
isNocase
:
boolean
= false
Returns
Promise
<
string
[]
>
find
All
Files
findAllFiles
(
globs
:
string
|
string
[]
,
isNocase
?:
boolean
)
:
Promise
<
string
[]
>
Parameters
globs
:
string
|
string
[]
Optional
isNocase
:
boolean
Returns
Promise
<
string
[]
>
find
First
findFirst
(
globs
:
string
|
string
[]
,
isNocase
?:
boolean
,
)
:
Promise
<
string
|
undefined
>
Parameters
globs
:
string
|
string
[]
Optional
isNocase
:
boolean
Returns
Promise
<
string
|
undefined
>
find
First
File
findFirstFile
(
globs
:
string
|
string
[]
,
isNocase
?:
boolean
,
)
:
Promise
<
string
|
undefined
>
Parameters
globs
:
string
|
string
[]
Optional
isNocase
:
boolean
Returns
Promise
<
string
|
undefined
>
get
File
Contents
getFileContents
(
relativeFile
:
string
)
:
Promise
<
string
|
undefined
>
Parameters
relativeFile
:
string
Returns
Promise
<
string
|
undefined
>
get
File
Lines
getFileLines
(
relativeFile
:
string
,
lineCount
:
number
,
)
:
Promise
<
string
|
undefined
>
Parameters
relativeFile
:
string
lineCount
:
number
Returns
Promise
<
string
|
undefined
>
glob
glob
(
globs
:
string
|
string
[]
,
options
:
GlobOptions
)
:
Promise
<
string
[]
>
Parameters
globs
:
string
|
string
[]
options
:
GlobOptions
Returns
Promise
<
string
[]
>
is
Binary
File
isBinaryFile
(
relativeFile
:
string
)
:
Promise
<
boolean
>
Parameters
relativeFile
:
string
Returns
Promise
<
boolean
>
normalize
Path
normalizePath
(
filepath
:
string
)
:
string
Parameters
filepath
:
string
Returns
string
relative
File
Exists
relativeFileExists
(
file
:
string
)
:
Promise
<
boolean
>
Parameters
file
:
string
Returns
Promise
<
boolean
>
remove
File
removeFile
(
relativeFile
:
string
)
:
Promise
<
void
>
Parameters
relativeFile
:
string
Returns
Promise
<
void
>
resolve
Contained
resolveContained
(
relativeFile
:
string
)
:
string
Parameters
relativeFile
:
string
Returns
string
set
File
Contents
setFileContents
(
relativeFile
:
string
,
contents
:
string
)
:
Promise
<
void
>
Parameters
relativeFile
:
string
contents
:
string
Returns
Promise
<
void
>
should
Include
shouldInclude
(
filePath
:
string
)
:
boolean
Parameters
filePath
:
string
Returns
boolean
Static
file
Exists
fileExists
(
file
:
string
)
:
Promise
<
boolean
>
Parameters
file
:
string
Returns
Promise
<
boolean
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
filter
Paths
target
Directory
Methods
find
All
find
All
Files
find
First
find
First
File
get
File
Contents
get
File
Lines
glob
is
Binary
File
normalize
Path
relative
File
Exists
remove
File
resolve
Contained
set
File
Contents
should
Include
file
Exists
@damian-buho/repolinter - v2.0.13
Loading...